ehealth-view
type: StructureDefinition
node role: treeRoot
id:
  v: ehealth-view
text:
  status:
    v: extensions
  div: Name Flags Card. Type Description & Constraints Basic 0..* Basic Resource for non-supported content Slices for extension 4..* Extension Extension Slice: Unordered, Open by value:url recommendation 0..1 CodeableConcept Recommendation state of the plan definition URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-recommendation Binding: PlanDefinition Recommendation (required) intendedAudience 0..* Reference() The intended audience of the resource URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-intendedAudience modifierRole 1..* (Complex) Modifier role URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role title 0..1 string Name for this (human friendly) URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-basic-title version 0..1 string The current version URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-version description 0..1 markdown Natural language description URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-description purpose 0..1 markdown Why this is defined URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-purpose useContext 0..1 UsageContext The context that the content is intended to support URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-useContext status 1..1 Coding The current status URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-status Binding: PublicationStatus (required) content 1..1 Reference() The content URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-content type 1..1 Coding View type URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-type Binding: View Type (required) viewFor 0..* (Complex) The valueset matching the view URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-for code 1..1 CodeableConcept Kind of Resource Binding: Basic resource type (required) Documentation for this format
url:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view
version:
  v: 2.8.0
name:
  v: ehealth-view
status:
  v: active
date:
  v: 2023-05-17T08:17:15+00:00
publisher:
  v: Systematic | Trifork
contact:
  name:
    v: Systematic | Trifork
  telecom:
    system:
      v: url
    value:
      v: http://ehealth.sundhed.dk
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Basic
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Basic
  link: http://hl7.org/fhir/StructureDefinition/Basic
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Basic
    path:
      v: Basic
    short:
      v: Resource for non-supported content
    definition:
      v: Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
    alias:
      v: Z-resource
    alias:
      v: Extension-resource
    alias:
      v: Custom-resource
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Basic
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
    mapping:
      identity:
        v: rim
      map:
        v: Act, Entity or Role
  element:
    id:
      v: Basic.id
    path:
      v: Basic.id
    short:
      v: Logical id of this artifact
    definition:
      v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    comment:
      v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Resource.id
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: http://hl7.org/fhirpath/System.String
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: Basic.meta
    path:
      v: Basic.meta
    short:
      v: Metadata about the resource

v: true

v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

v: id

v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.

v: 0

v: 1

path:
  v: Resource.meta
min:
  v: 0
max:
  v: 1

code:
  v: Meta

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())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  link: http://hl7.org/fhir/StructureDefinition/Element

v: false

v: true

id:
  v: Basic.implicitRules
path:
  v: Basic.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: Basic.language
path:
  v: Basic.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    value:
      v: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    value:
      v: true
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages

id:
  v: Basic.text
path:
  v: Basic.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Basic.contained
path:
  v: Basic.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Basic.extension
path:
  v: Basic.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 4
max:
  v: *
base:
  path:
    v: DomainResource.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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Basic.extension:recommendation
path:
  v: Basic.extension
slice name:
  v: recommendation
short:
  v: Recommendation state of the plan definition
definition:
  v: Recommendation state of the plan definition
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-recommendation
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-recommendation
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:intendedAudience
path:
  v: Basic.extension
slice name:
  v: intendedAudience
short:
  v: The intended audience of the resource
definition:
  v: Specifies that the resource is only intended for use in the specified organisations. Leave blank if the resource is intended for global use.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-intendedAudience
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-intendedAudience
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:modifierRole
path:
  v: Basic.extension
slice name:
  v: modifierRole
short:
  v: Modifier role
definition:
  v: This is a modifier role that can hold a role and a reference to the item who has the role. Ex. owner + a reference to the owner organization.
min:
  v: 1
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:title
path:
  v: Basic.extension
slice name:
  v: title
short:
  v: Name for this (human friendly)
definition:
  v: Name for this (human friendly)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-basic-title
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-basic-title
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:version
path:
  v: Basic.extension
slice name:
  v: version
short:
  v: The current version
definition:
  v: Business version
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-version
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-version
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:description
path:
  v: Basic.extension
slice name:
  v: description
short:
  v: Natural language description
definition:
  v: Natural language description
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-description
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-description
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:purpose
path:
  v: Basic.extension
slice name:
  v: purpose
short:
  v: Why this is defined
definition:
  v: Why this is defined
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-purpose
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-purpose
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:useContext
path:
  v: Basic.extension
slice name:
  v: useContext
short:
  v: The context that the content is intended to support
definition:
  v: The context that the content is intended to support
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-useContext
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-useContext
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:status
path:
  v: Basic.extension
slice name:
  v: status
short:
  v: The current status
definition:
  v: The current status
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-status
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-status
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:content
path:
  v: Basic.extension
slice name:
  v: content
short:
  v: The content
definition:
  v: The content
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-content
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-content
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:type
path:
  v: Basic.extension
slice name:
  v: type
short:
  v: View type
definition:
  v: Ehealth view type
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-type
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-type
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.extension:viewFor
path:
  v: Basic.extension
slice name:
  v: viewFor
short:
  v: The valueset matching the view
definition:
  v: The valueset matching the view
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-for
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-for
condition:
  v: ele-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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false

id:
  v: Basic.modifierExtension
path:
  v: Basic.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Basic.identifier
path:
  v: Basic.identifier
short:
  v: Business identifier
definition:
  v: Identifier assigned to the resource for business purposes, outside the context of FHIR.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Basic.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: ./identifier

id:
  v: Basic.code
path:
  v: Basic.code
short:
  v: Kind of Resource
definition:
  v: Identifies the 'type' of resource - equivalent to the resource name for other resources.
comment:
  v: Because resource references will only be able to indicate 'Basic', the type of reference will need to be specified in a Profile identified as part of the resource. Refer to the resource notes section for information on appropriate terminologies for this code. This element is labeled as a modifier because it defines the meaning of the resource and cannot be ignored.
requirements:
  v: Must be able to distinguish different types of Basic resources.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Basic.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This element determines what kind of resource is being represented which drives the meaning of all of the other elements.
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://ehealth.sundhed.dk/vs/basic-resource-type
    link: http://ehealth.sundhed.dk/vs/basic-resource-type
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: ./code

id:
  v: Basic.subject
path:
  v: Basic.subject
short:
  v: Identifies the focus of this resource
definition:
  v: Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.
comment:
  v: Optional as not all potential resources will have subjects. Resources associated with multiple subjects can handle this via extension.
requirements:
  v: Needed for partitioning the resource by Patient.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.subject
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: http://hl7.org/fhir/StructureDefinition/Resource
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='SBJ'] (possibly through a ControlAct and Role)
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: Basic.created
path:
  v: Basic.created
short:
  v: When created
definition:
  v: Identifies when the resource was first created.
requirements:
  v: Allows ordering resource instances by time.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.created
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='AUT']/time (possibly through a ControlAct and Role)

id:
  v: Basic.author
path:
  v: Basic.author
short:
  v: Who created
definition:
  v: Indicates who was responsible for creating the resource instance.
requirements:
  v: Needed for partitioning the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.author
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='SUB'] (possibly through a ControlAct and Role)

element:
  id:
    v: Basic
  path:
    v: Basic
element:
  id:
    v: Basic.extension
  path:
    v: Basic.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 4
element:
  id:
    v: Basic.extension:recommendation
  path:
    v: Basic.extension
  slice name:
    v: recommendation
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-recommendation
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-recommendation
element:
  id:
    v: Basic.extension:intendedAudience
  path:
    v: Basic.extension
  slice name:
    v: intendedAudience
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-intendedAudience
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-intendedAudience
element:
  id:
    v: Basic.extension:modifierRole
  path:
    v: Basic.extension
  slice name:
    v: modifierRole
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role
element:
  id:
    v: Basic.extension:title
  path:
    v: Basic.extension
  slice name:
    v: title
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-basic-title
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-basic-title
element:
  id:
    v: Basic.extension:version
  path:
    v: Basic.extension
  slice name:
    v: version
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-version
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-version
element:
  id:
    v: Basic.extension:description
  path:
    v: Basic.extension
  slice name:
    v: description
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-description
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-description
element:
  id:
    v: Basic.extension:purpose
  path:
    v: Basic.extension
  slice name:
    v: purpose
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-purpose
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-purpose
element:
  id:
    v: Basic.extension:useContext
  path:
    v: Basic.extension
  slice name:
    v: useContext
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-useContext
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-useContext
element:
  id:
    v: Basic.extension:status
  path:
    v: Basic.extension
  slice name:
    v: status
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-status
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-status
element:
  id:
    v: Basic.extension:content
  path:
    v: Basic.extension
  slice name:
    v: content
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-content
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-content
element:
  id:
    v: Basic.extension:type
  path:
    v: Basic.extension
  slice name:
    v: type
  min:
    v: 1

v: 1

code:
  v: Extension
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-type
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-type

id:
  v: Basic.extension:viewFor
path:
  v: Basic.extension
slice name:
  v: viewFor
min:
  v: 0
max:
  v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-for
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-view-for

id:
  v: Basic.code
path:
  v: Basic.code
binding:
  strength:
    v: required
  value set:
    v: http://ehealth.sundhed.dk/vs/basic-resource-type
    link: http://ehealth.sundhed.dk/vs/basic-resource-type