ehealth-clinicalimpression
type: StructureDefinition
node role: treeRoot
id:
  v: ehealth-clinicalimpression
text:
  status:
    v: extensions
  div: Name Flags Card. Type Description & Constraints ClinicalImpression 0..* ClinicalImpression A clinical assessment performed when planning treatments and management strategies for a patient Slices for extension 1..* Extension Extension Slice: Unordered, Open by value:url carePlan 0..1 Reference(ehealth-careplan) {r} The Careplan URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-careplan decisionContext 0..* Reference(Parameters) {r, c} Library and relevant resources used for evaluation URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-decisionContext decision 0..* CodeableConcept approved | approved-for-sharing URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-decision Binding: ClinicalImpression Decision Codes (required) episodeOfCare 1..1 Reference(EpisodeOfCare) Associated Encounter episode of care URL: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare findingBasis 0..* (Complex) The basis for a clinical impression finding URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse-finding-basis code 1..1 CodeableConcept Kind of assessment performed Binding: Clinical Impression Codes (required) subject 1..1 Reference(ehealth-patient) {r} Patient or group assessed assessor 0..1 Reference(ehealth-practitioner) {r} The clinician performing the assessment previous 0..1 Reference(ehealth-clinicalimpression) {r} Reference to last assessment problem 0..* Reference(ehealth-condition | AllergyIntolerance) {r} Relevant impressions of patient state investigation Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url viewInvestigationItem 0..* Reference(ehealth-view) {r} View item URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-viewInvestigationItem item 0..* Reference(ehealth-media | ehealth-observation | ehealth-questionnaireresponse | FamilyMemberHistory | DiagnosticReport | Ri…
url:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression
version:
  v: 2.10.0
name:
  v: ehealth-clinicalimpression
status:
  v: active
date:
  v: 2023-10-24T11:12:05+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: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: ClinicalImpression
base definition:
  v: http://hl7.org/fhir/StructureDefinition/ClinicalImpression
  link: http://hl7.org/fhir/StructureDefinition/ClinicalImpression
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: ClinicalImpression
    path:
      v: ClinicalImpression
    short:
      v: A clinical assessment performed when planning treatments and management strategies for a patient
    definition:
      v: A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called "ClinicalImpression" rather than "ClinicalAssessment" to avoid confusion with the recording of assessment tools such as Apgar score.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: ClinicalImpression
      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: workflow
      map:
        v: Event
    mapping:
      identity:
        v: v2
      map:
        v: Partial mapping for problem evaluation
  element:
    id:
      v: ClinicalImpression.id
    path:
      v: ClinicalImpression.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

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: false

v: true

id:
  v: ClinicalImpression.meta
path:
  v: ClinicalImpression.meta
short:
  v: Metadata about the resource
definition:
  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.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
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

id:
  v: ClinicalImpression.implicitRules
path:
  v: ClinicalImpression.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: ClinicalImpression.language
path:
  v: ClinicalImpression.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: ClinicalImpression.text
path:
  v: ClinicalImpression.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: ClinicalImpression.contained
path:
  v: ClinicalImpression.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: ClinicalImpression.extension
path:
  v: ClinicalImpression.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
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: ClinicalImpression.extension:carePlan
path:
  v: ClinicalImpression.extension
slice name:
  v: carePlan
short:
  v: The Careplan
definition:
  v: Identifies the CarePlan context in which this particular resource was created.
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-clinicalimpression-careplan
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-careplan
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: ClinicalImpression.extension:decisionContext
path:
  v: ClinicalImpression.extension
slice name:
  v: decisionContext
short:
  v: Library and relevant resources used for evaluation
definition:
  v: Library and relevant resources used for evaluation
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-clinicalimpression-decisionContext
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-decisionContext
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: ClinicalImpression.extension:decision
path:
  v: ClinicalImpression.extension
slice name:
  v: decision
short:
  v: approved | approved-for-sharing
definition:
  v: Clinical impression decision, 'approved' or 'approved-for-sharing'
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-clinicalimpression-decision
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-decision
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: ClinicalImpression.extension:episodeOfCare
path:
  v: ClinicalImpression.extension
slice name:
  v: episodeOfCare
short:
  v: Associated Encounter episode of care
definition:
  v: The episode(s) of care that establishes the context for this {{title}}.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
    link: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
  aggregation:
    v: referenced
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
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]

id:
  v: ClinicalImpression.extension:findingBasis
path:
  v: ClinicalImpression.extension
slice name:
  v: findingBasis
short:
  v: The basis for a clinical impression finding
definition:
  v: Basis for the overall clinical impression finding of the questionnaire response
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-questionnaireresponse-finding-basis
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse-finding-basis
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: ClinicalImpression.modifierExtension
path:
  v: ClinicalImpression.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: ClinicalImpression.identifier
path:
  v: ClinicalImpression.identifier
short:
  v: Business identifier
definition:
  v: Business identifiers assigned to this clinical impression by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
comment:
  v: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.
requirements:
  v: Allows identification of the clinical impression as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.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: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: PID-3

id:
  v: ClinicalImpression.status
path:
  v: ClinicalImpression.status
short:
  v: in-progress | completed | entered-in-error
definition:
  v: Identifies the workflow status of the assessment.
comment:
  v: This element is labeled as a modifier because the status contains the code entered-in-error that marks the clinical impression as not currently valid.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalImpression.status
  min:
    v: 1
  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: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ClinicalImpressionStatus
  strength:
    v: required
  description:
    v: The workflow state of a clinical impression.
  value set:
    v: http://hl7.org/fhir/ValueSet/clinicalimpression-status|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: v2
  map:
    v: PRB-14

id:
  v: ClinicalImpression.statusReason
path:
  v: ClinicalImpression.statusReason
short:
  v: Reason for current status
definition:
  v: Captures the reason for the current state of the ClinicalImpression.
comment:
  v: This is generally only used for "exception" statuses such as "not-done", "suspended" or "cancelled". [distinct reason codes for different statuses can be enforced using invariants if they are universal bindings].
alias:
  v: Suspended Reason
alias:
  v: Cancelled Reason
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.statusReason
  min:
    v: 0
  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: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ClinicalImpressionStatusReason
  strength:
    v: example
  description:
    v: Codes identifying the reason for the current state of a clinical impression.
mapping:
  identity:
    v: workflow
  map:
    v: Event.statusReason
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde

id:
  v: ClinicalImpression.code
path:
  v: ClinicalImpression.code
short:
  v: Kind of assessment performed
definition:
  v: Categorizes the type of clinical assessment performed.
comment:
  v: This is present as a place-holder only and may be removed based on feedback/work group opinion.
alias:
  v: type
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalImpression.code
  min:
    v: 0
  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: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://ehealth.sundhed.dk/vs/clinicalimpression-codes
    link: http://ehealth.sundhed.dk/vs/clinicalimpression-codes
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]

id:
  v: ClinicalImpression.description
path:
  v: ClinicalImpression.description
short:
  v: Why/how the assessment was performed
definition:
  v: A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.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())
  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

id:
  v: ClinicalImpression.subject
path:
  v: ClinicalImpression.subject
short:
  v: Patient or group assessed
definition:
  v: The patient or group of individuals assessed as part of this record.
requirements:
  v: Group is typically for veterinary and/or public health purposes.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalImpression.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
  aggregation:
    v: referenced
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: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: v2
  map:
    v: PID-3
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: ClinicalImpression.encounter
path:
  v: ClinicalImpression.encounter
short:
  v: Encounter created as part of
definition:
  v: The Encounter during which this ClinicalImpression was created or to which the creation of this record is tightly associated.
comment:
  v: This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    link: http://hl7.org/fhir/StructureDefinition/Encounter
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: workflow
  map:
    v: Event.context
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context

id:
  v: ClinicalImpression.effective[x]
path:
  v: ClinicalImpression.effective[x]
short:
  v: Time of assessment
definition:
  v: The point in time or period over which the subject was assessed.
comment:
  v: This SHOULD be accurate to at least the minute, though some assessments only have a known date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.effective[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
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())
  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: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]
mapping:
  identity:
    v: v2
  map:
    v: PRB-2

id:
  v: ClinicalImpression.date
path:
  v: ClinicalImpression.date
short:
  v: When the assessment was documented
definition:
  v: Indicates when the documentation of the assessment was complete.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
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

id:
  v: ClinicalImpression.assessor
path:
  v: ClinicalImpression.assessor
short:
  v: The clinician performing the assessment
definition:
  v: The clinician performing the assessment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.assessor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner
  aggregation:
    v: referenced
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: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: v2
  map:
    v: ROL-4

id:
  v: ClinicalImpression.previous
path:
  v: ClinicalImpression.previous
short:
  v: Reference to last assessment
definition:
  v: A reference to the last assessment that was conducted on this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes.
comment:
  v: It is always likely that multiple previous assessments exist for a patient. The point of quoting a previous assessment is that this assessment is relative to it (see resolved).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.previous
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression
  aggregation:
    v: referenced
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

id:
  v: ClinicalImpression.problem
path:
  v: ClinicalImpression.problem
short:
  v: Relevant impressions of patient state
definition:
  v: A list of the relevant problems/conditions for a patient.
comment:
  v: e.g. The patient is a pregnant, has congestive heart failure, has an ‎Adenocarcinoma, and is allergic to penicillin.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.problem
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
    link: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
  aggregation:
    v: referenced
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.why[x]
mapping:
  identity:
    v: v2
  map:
    v: PRB-3 / IAM-7

id:
  v: ClinicalImpression.investigation
path:
  v: ClinicalImpression.investigation
short:
  v: One or more sets of investigations (signs, symptoms, etc.)
definition:
  v: One or more sets of investigations (signs, symptoms, etc.). The actual grouping of investigations varies greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.investigation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
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

id:
  v: ClinicalImpression.investigation.id
path:
  v: ClinicalImpression.investigation.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:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalImpression.investigation.extension
path:
  v: ClinicalImpression.investigation.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
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())
  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: ClinicalImpression.investigation.extension:viewInvestigationItem
path:
  v: ClinicalImpression.investigation.extension
slice name:
  v: viewInvestigationItem
short:
  v: View item
definition:
  v: Investigation item for View resources so they can be approved.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-viewInvestigationItem
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-viewInvestigationItem
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: ClinicalImpression.investigation.modifierExtension
path:
  v: ClinicalImpression.investigation.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.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 element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalImpression.investigation.code
path:
  v: ClinicalImpression.investigation.code
short:
  v: A name/code for the set
definition:
  v: A name/code for the group ("set") of investigations. Typically, this will be something like "signs", "symptoms", "clinical", "diagnostic", but the list is not constrained, and others such groups such as (exposure|family|travel|nutritional) history may be used.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalImpression.investigation.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: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: InvestigationGroupType
  strength:
    v: example
  description:
    v: A name/code for a set of investigations.
  value set:
    v: http://hl7.org/fhir/ValueSet/investigation-sets
    link: http://hl7.org/fhir/ValueSet/investigation-sets

id:
  v: ClinicalImpression.investigation.item
path:
  v: ClinicalImpression.investigation.item
short:
  v: Record of a specific investigation
definition:
  v: A record of a specific investigation that was undertaken.
comment:
  v: Most investigations are observations of one kind or another but some other specific types of data collection resources can also be used.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.investigation.item
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
    link: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
    link: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RiskAssessment
    link: http://hl7.org/fhir/StructureDefinition/RiskAssessment
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImagingStudy
    link: http://hl7.org/fhir/StructureDefinition/ImagingStudy
  aggregation:
    v: referenced
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: v2
  map:
    v: OBX-21

id:
  v: ClinicalImpression.protocol
path:
  v: ClinicalImpression.protocol
short:
  v: Clinical Protocol followed
definition:
  v: Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.protocol
  min:
    v: 0
  max:
    v: *
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: false
is summary:
  v: false

id:
  v: ClinicalImpression.summary
path:
  v: ClinicalImpression.summary
short:
  v: Summary of the assessment
definition:
  v: A text summary of the investigations and the diagnosis.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.summary
  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())
  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: v2
  map:
    v: OBX

id:
  v: ClinicalImpression.finding
path:
  v: ClinicalImpression.finding
short:
  v: Possible or likely findings and diagnoses
definition:
  v: Specific findings or diagnoses that were considered likely or relevant to ongoing treatment.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.finding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
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

id:
  v: ClinicalImpression.finding.id
path:
  v: ClinicalImpression.finding.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:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalImpression.finding.extension
path:
  v: ClinicalImpression.finding.extension
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 manageable, 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())
  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
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalImpression.finding.modifierExtension
path:
  v: ClinicalImpression.finding.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.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 element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalImpression.finding.itemCodeableConcept
path:
  v: ClinicalImpression.finding.itemCodeableConcept
short:
  v: What was found
definition:
  v: Specific text or code for finding or diagnosis, which may include ruled-out or resolved conditions.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.finding.itemCodeableConcept
  min:
    v: 0
  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: false
is summary:
  v: false
binding:
  strength:
    v: required
  value set:
    v: http://ehealth.sundhed.dk/vs/clinicalimpression-finding-codes
    link: http://ehealth.sundhed.dk/vs/clinicalimpression-finding-codes
mapping:
  identity:
    v: v2
  map:
    v: OBX

id:
  v: ClinicalImpression.finding.itemReference
path:
  v: ClinicalImpression.finding.itemReference
short:
  v: What was found
definition:
  v: Specific reference for finding or diagnosis, which may include ruled-out or resolved conditions.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.finding.itemReference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition
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: v2
  map:
    v: OBX

id:
  v: ClinicalImpression.finding.basis
path:
  v: ClinicalImpression.finding.basis
short:
  v: Which investigations support finding
definition:
  v: Which investigations support finding or diagnosis.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalImpression.finding.basis
  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())
  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

id:
  v: ClinicalImpression.prognosisCodeableConcept
path:
  v: ClinicalImpression.prognosisCodeableConcept
short:
  v: Estimate of likely outcome
definition:
  v: Estimate of likely outcome.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.prognosisCodeableConcept
  min:
    v: 0
  max:
    v: *
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: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ClinicalImpressionPrognosis
  strength:
    v: example
  description:
    v: Prognosis or outlook findings.
  value set:
    v: http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis
    link: http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis
mapping:
  identity:
    v: v2
  map:
    v: PRB-22

id:
  v: ClinicalImpression.prognosisReference
path:
  v: ClinicalImpression.prognosisReference
short:
  v: RiskAssessment expressing likely outcome
definition:
  v: RiskAssessment expressing likely outcome.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.prognosisReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RiskAssessment
    link: http://hl7.org/fhir/StructureDefinition/RiskAssessment
  aggregation:
    v: referenced
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

id:
  v: ClinicalImpression.supportingInfo
path:
  v: ClinicalImpression.supportingInfo
short:
  v: Information supporting the clinical impression
definition:
  v: Information supporting the clinical impression.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.supportingInfo
  min:
    v: 0
  max:
    v: *
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: false

id:
  v: ClinicalImpression.note
path:
  v: ClinicalImpression.note
short:
  v: Comments made about the ClinicalImpression
definition:
  v: Commentary about the impression, typically recorded after the impression itself was made, though supplemental notes by the original author could also appear.
comment:
  v: Don't use this element for content that should more properly appear as one of the specific elements of the impression.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalImpression.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
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: workflow
  map:
    v: Event.note

id:
  v: ClinicalImpression.note.id
path:
  v: ClinicalImpression.note.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:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalImpression.note.extension
path:
  v: ClinicalImpression.note.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 manageable, 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())
  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
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalImpression.note.author[x]
path:
  v: ClinicalImpression.note.author[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: closed
short:
  v: Individual responsible for the annotation
definition:
  v: The individual responsible for making the annotation.
comment:
  v: Organization is used when there's no need for specific attribution as to who made the comment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Annotation.author[x]
  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/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
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())
  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: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act.participant[typeCode=AUT].role

id:
  v: ClinicalImpression.note.author[x]:authorReference
path:
  v: ClinicalImpression.note.author[x]
slice name:
  v: authorReference
short:
  v: Individual responsible for the annotation
definition:
  v: The individual responsible for making the annotation.
comment:
  v: Organization is used when there's no need for specific attribution as to who made the comment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Annotation.author[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson
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: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act.participant[typeCode=AUT].role

id:
  v: ClinicalImpression.note.author[x]:authorString
path:
  v: ClinicalImpression.note.author[x]
slice name:
  v: authorString
short:
  v: Individual responsible for the annotation
definition:
  v: The individual responsible for making the annotation.
comment:
  v: Organization is used when there's no need for specific attribution as to who made the comment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Annotation.author[x]
  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())
  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: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act.participant[typeCode=AUT].role

id:
  v: ClinicalImpression.note.time
path:
  v: ClinicalImpression.note.time
short:
  v: When the annotation was made
definition:
  v: Indicates when this particular annotation was made.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Annotation.time
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
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: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act.effectiveTime

id:
  v: ClinicalImpression.note.text
path:
  v: ClinicalImpression.note.text
short:
  v: The annotation - text content (as markdown)
definition:
  v: The text of the annotation in markdown format.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Annotation.text
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: markdown
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: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act.text

element:
  id:
    v: ClinicalImpression
  path:
    v: ClinicalImpression
element:
  id:
    v: ClinicalImpression.extension
  path:
    v: ClinicalImpression.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 1
element:
  id:
    v: ClinicalImpression.extension:carePlan
  path:
    v: ClinicalImpression.extension
  slice name:
    v: carePlan
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-careplan
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-careplan
element:
  id:
    v: ClinicalImpression.extension:decisionContext
  path:
    v: ClinicalImpression.extension
  slice name:
    v: decisionContext
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-decisionContext
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-decisionContext
element:
  id:
    v: ClinicalImpression.extension:decision
  path:
    v: ClinicalImpression.extension
  slice name:
    v: decision
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-decision
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-decision
element:
  id:
    v: ClinicalImpression.extension:episodeOfCare
  path:
    v: ClinicalImpression.extension
  slice name:
    v: episodeOfCare
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
      link: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
    aggregation:
      v: referenced
element:
  id:
    v: ClinicalImpression.extension:findingBasis
  path:
    v: ClinicalImpression.extension
  slice name:
    v: findingBasis
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Extension
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse-finding-basis
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse-finding-basis
element:
  id:
    v: ClinicalImpression.code
  path:
    v: ClinicalImpression.code
  min:
    v: 1
  binding:
    strength:
      v: required
    value set:
      v: http://ehealth.sundhed.dk/vs/clinicalimpression-codes
      link: http://ehealth.sundhed.dk/vs/clinicalimpression-codes
element:
  id:
    v: ClinicalImpression.subject
  path:
    v: ClinicalImpression.subject
  type:
    code:
      v: Reference
    target profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
    aggregation:
      v: referenced
element:
  id:
    v: ClinicalImpression.assessor
  path:
    v: ClinicalImpression.assessor
  type:
    code:
      v: Reference
    target profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner
    aggregation:
      v: referenced
element:
  id:
    v: ClinicalImpression.previous
  path:
    v: ClinicalImpression.previous
  type:
    code:
      v: Reference
    target profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression
    aggregation:
      v: referenced
element:
  id:
    v: ClinicalImpression.problem
  path:
    v: ClinicalImpression.problem
  type:
    code:
      v: Reference
    target profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
      link: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
    aggregation:
      v: referenced
element:
  id:
    v: ClinicalImpression.investigation.extension
  path:
    v: ClinicalImpression.investigation.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: ClinicalImpression.investigation.extension:viewInvestigationItem
  path:
    v: ClinicalImpression.investigation.extension
  slice name:
    v: viewInvestigationItem
  min:
    v: 0

v: *

code:
  v: Extension
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-viewInvestigationItem
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression-viewInvestigationItem

id:
  v: ClinicalImpression.investigation.item
path:
  v: ClinicalImpression.investigation.item
type:
  code:
    v: Reference
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
    link: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
    link: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RiskAssessment
    link: http://hl7.org/fhir/StructureDefinition/RiskAssessment
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImagingStudy
    link: http://hl7.org/fhir/StructureDefinition/ImagingStudy
  aggregation:
    v: referenced

id:
  v: ClinicalImpression.finding.itemCodeableConcept
path:
  v: ClinicalImpression.finding.itemCodeableConcept
binding:
  strength:
    v: required
  value set:
    v: http://ehealth.sundhed.dk/vs/clinicalimpression-finding-codes
    link: http://ehealth.sundhed.dk/vs/clinicalimpression-finding-codes

id:
  v: ClinicalImpression.finding.itemReference
path:
  v: ClinicalImpression.finding.itemReference
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition

id:
  v: ClinicalImpression.prognosisReference
path:
  v: ClinicalImpression.prognosisReference
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RiskAssessment
    link: http://hl7.org/fhir/StructureDefinition/RiskAssessment
  aggregation:
    v: referenced

id:
  v: ClinicalImpression.note.authorReference
path:
  v: ClinicalImpression.note.authorReference
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
  target profile:
    v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson
    link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson

id:
  v: ClinicalImpression.note.authorString
path:
  v: ClinicalImpression.note.authorString
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string