RIVContactPointAvailability
type: StructureDefinition
node role: treeRoot
id:
  v: RIVContactPointAvailability
text:
  status:
    v: extensions
  div:
    v: Genererad berättande text: StructureDefinition RIVContactPointAvailability Namn Flaggor Kard. Typ Beskrivning & begränsningar Extension 0..* Extension Tillgänglighet för kontaktväg #xD; extension 0..0 Extension #xD; url 1..1 uri "http://example.org/fhir/fasta-kontakter/StructureDefinition/RIVContactPointAvailability" #xD; value[x] S 1..1 Availability Kontaktvägens tillgänglighet #xD; availableTime S 1..* Element Tillgänglig tid #xD; daysOfWeek S 1..* code Veckodag #xD; availableStartTime S 0..1 time Starttid #xD; availableEndTime S 0..1 time Sluttid #xD; Dokumentation för detta format
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics
  value: code
    v: can-bind
url:
  v: http://example.org/fhir/fasta-kontakter/StructureDefinition/RIVContactPointAvailability
version:
  v: 0.1.0
name:
  v: RIVContactPointAvailability
title:
  v: Tillgänglighet för kontaktväg
status:
  v: draft
date:
  v: 2026-08-26T09:10:56+02:00
publisher:
  v: Inera AB
contact:
  name:
    v: Inera AB
  telecom:
    system:
      v: url
    value:
      v: http://example.org/example-publisher
description:
  v: Anger när en kontaktväg är tillgänglig.
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: complex-type
abstract:
  v: false
context:
  type:
    v: element
  expression:
    v: CareTeam.telecom
type:
  v: Extension
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Extension
  link: http://hl7.org/fhir/StructureDefinition/Extension
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 5.0.0
  element:
    id:
      v: Extension
    path:
      v: Extension
    short:
      v: Tillgänglighet för kontaktväg
    definition:
      v: Anger när en kontaktväg är tillgänglig.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Extension
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    constraint:
      key:
        v: ext-1
      severity:
        v: error
      human:
        v: Must have either extensions or value[x], not both
      expression:
        v: extension.exists() != value.exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/Extension
        link: http://hl7.org/fhir/StructureDefinition/Extension
    is modifier:
      v: false
  element:
    id:
      v: Extension.id
    path:
      v: Extension.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: url
      code:
        v: http://hl7.org/fhirpath/System.String
    condition:
      v: ele-1
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: Extension.extension
    path:
      v: Extension.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    short:
      v: Extension
    definition:
      v: An Extension
    min:
      v: 0
    max:
      v: 0
    base:
      path:
        v: Element.extension
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Extension
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    constraint:
      key:
        v: ext-1
      severity:
        v: error
      human:
        v: Must have either extensions or value[x], not both
      expression:
        v: extension.exists() != value.exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/Extension
        link: http://hl7.org/fhir/StructureDefinition/Extension

url
v: id

v: value

v: url

v: false

v: false

id:
  v: Extension.url
path:
  v: Extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: uri
  code:
    v: http://hl7.org/fhirpath/System.String
fixed: uri
  v: http://example.org/fhir/fasta-kontakter/StructureDefinition/RIVContactPointAvailability
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.value[x]
path:
  v: Extension.value[x]
short:
  v: Kontaktvägens tillgänglighet
definition:
  v: Anger under vilka veckodagar och tider kontaktvägen är tillgänglig.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Availability
condition:
  v: ext-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.value[x].id
path:
  v: Extension.value[x].id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.value[x].extension
path:
  v: Extension.value[x].extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.value[x].availableTime
path:
  v: Extension.value[x].availableTime
short:
  v: Tillgänglig tid
definition:
  v: Anger återkommande veckodagar och tider då kontaktvägen är tillgänglig.
requirements:
  v: A collection of times that the {item} is available.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Availability.availableTime
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Element
constraint:
  key:
    v: av-1
  severity:
    v: error
  human:
    v: Cannot include start/end times when selecting all day availability.
  expression:
    v: allDay.exists().not() or (allDay implies availableStartTime.exists().not() and availableEndTime.exists().not())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Availability
    link: http://hl7.org/fhir/StructureDefinition/Availability
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Extension.value[x].availableTime.id
path:
  v: Extension.value[x].availableTime.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.value[x].availableTime.extension
path:
  v: Extension.value[x].availableTime.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.value[x].availableTime.daysOfWeek
path:
  v: Extension.value[x].availableTime.daysOfWeek
short:
  v: Veckodag
definition:
  v: Veckodag då kontaktvägen är tillgänglig.
requirements:
  v: Indicates which days of the week are available between the start and end Times.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Availability.availableTime.daysOfWeek
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DaysOfWeek
  strength:
    v: required
  description:
    v: The purpose for which an extended contact detail should be used.
  value set:
    v: http://hl7.org/fhir/ValueSet/days-of-week|5.0.0
    link: 5.0
    link: .0

id:
  v: Extension.value[x].availableTime.allDay
path:
  v: Extension.value[x].availableTime.allDay
short:
  v: Always available? i.e. 24 hour service
definition:
  v: Always available? i.e. 24 hour service.
requirements:
  v: Is this always available? (hence times are irrelevant) i.e. 24 hour service.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Availability.availableTime.allDay
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
condition:
  v: av-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Extension.value[x].availableTime.availableStartTime
path:
  v: Extension.value[x].availableTime.availableStartTime
short:
  v: Starttid
definition:
  v: Tidpunkt då tillgängligheten börjar.
comment:
  v: The timezone is expected to be specified or implied by the context this datatype is used.
requirements:
  v: The opening time of day. Note: If the AllDay flag is set, then this time is ignored.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Availability.availableTime.availableStartTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: time
condition:
  v: av-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Extension.value[x].availableTime.availableEndTime
path:
  v: Extension.value[x].availableTime.availableEndTime
short:
  v: Sluttid
definition:
  v: Tidpunkt då tillgängligheten upphör.
comment:
  v: The timezone is expected to be specified or implied by the context this datatype is used.
requirements:
  v: The closing time of day. Note: If the AllDay flag is set, then this time is ignored.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Availability.availableTime.availableEndTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: time
condition:
  v: av-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Extension.value[x].notAvailableTime
path:
  v: Extension.value[x].notAvailableTime
short:
  v: Not available during this time due to provided reason
definition:
  v: Not available during this time due to provided reason.
requirements:
  v: The {item} is not available during this period of time due to the provided reason.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Availability.notAvailableTime
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Extension.value[x].notAvailableTime.id
path:
  v: Extension.value[x].notAvailableTime.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.value[x].notAvailableTime.extension
path:
  v: Extension.value[x].notAvailableTime.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.value[x].notAvailableTime.description
path:
  v: Extension.value[x].notAvailableTime.description
short:
  v: Reason presented to the user explaining why time not available
definition:
  v: Reason presented to the user explaining why time not available.
comment:
  v: The reason will generally be provided to give the textual reason for displaying when the {item} is not available, e.g. 'Closed public holidays' or 'Independence Day'. In cases such as this, the `during` might not be included and local knowledge would be required in such cases (as don't desire to keep updating when the holiday occurs each year). e.g.2: 'Closed for maintenance over the summer' for this example you would want to include the `during` period, unless this was a university hospital and the "summer" period was well known, but would recommend its inclusion anyway.
requirements:
  v: The reason that can be presented to the user as to why this time is not available.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Availability.notAvailableTime.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Extension.value[x].notAvailableTime.during
path:
  v: Extension.value[x].notAvailableTime.during
short:
  v: Service not available during this period
definition:
  v: Service not available during this period.
requirements:
  v: The {item} is not available (seasonally or for a public holiday) during this period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Availability.notAvailableTime.during
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

element:
  id:
    v: Extension
  path:
    v: Extension
  short:
    v: Tillgänglighet för kontaktväg
  definition:
    v: Anger när en kontaktväg är tillgänglig.
element:
  id:
    v: Extension.extension
  path:
    v: Extension.extension
  max:
    v: 0
element:
  id:
    v: Extension.url
  path:
    v: Extension.url
  fixed: uri
    v: http://example.org/fhir/fasta-kontakter/StructureDefinition/RIVContactPointAvailability
element:
  id:
    v: Extension.value[x]
  path:
    v: Extension.value[x]
  short:
    v: Kontaktvägens tillgänglighet
  definition:
    v: Anger under vilka veckodagar och tider kontaktvägen är tillgänglig.
  min:
    v: 1
  type:
    code:
      v: Availability
  must support:
    v: true
element:
  id:
    v: Extension.value[x].availableTime
  path:
    v: Extension.value[x].availableTime
  short:
    v: Tillgänglig tid
  definition:
    v: Anger återkommande veckodagar och tider då kontaktvägen är tillgänglig.
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: Extension.value[x].availableTime.daysOfWeek
  path:
    v: Extension.value[x].availableTime.daysOfWeek
  short:
    v: Veckodag
  definition:
    v: Veckodag då kontaktvägen är tillgänglig.
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: Extension.value[x].availableTime.availableStartTime
  path:
    v: Extension.value[x].availableTime.availableStartTime
  short:
    v: Starttid
  definition:
    v: Tidpunkt då tillgängligheten börjar.
  must support:
    v: true
element:
  id:
    v: Extension.value[x].availableTime.availableEndTime
  path:
    v: Extension.value[x].availableTime.availableEndTime
  short:
    v: Sluttid
  definition:
    v: Tidpunkt då tillgängligheten upphör.
  must support:
    v: true