PackagesCanonicalsLogsProblems
    Packages
    de.basisprofil.r4@1.5.1-beta2
    http://fhir.de/StructureDefinition/observation-de-ekg
description: EKG Observation Profil
package_name: de.basisprofil.r4
derivation: constraint
name: EkgDE
type: Observation
elements:
  category:
    index: 0
    elements:
      coding:
        pattern:
          type: Coding
          value: {code: procedure, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
        index: 1
  code:
    elements:
      coding:
        index: 2
        elements:
          system: {index: 3}
          code: {index: 4}
        required: [system, code]
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            loinc:
              match: {code: 11524-6, system: 'http://loinc.org'}
              schema:
                pattern:
                  type: Coding
                  value: {code: 11524-6, system: 'http://loinc.org'}
                _required: true
                index: 5
              min: 1
              max: 1
            snomed:
              match: {code: '106073009', system: 'http://snomed.info/sct'}
              schema:
                pattern:
                  type: Coding
                  value: {code: '106073009', system: 'http://snomed.info/sct'}
                array: true
                index: 6
              min: 0
    required: [coding]
  subject: {index: 7}
  effective:
    constraint:
      vs-de-1: {human: 'If Observation.effective[x] has a value then that value shall be precise to the day', source: 'http://fhir.de/StructureDefinition/observation-de-ekg', severity: error, expression: (($this is dateTime) implies ($this as dateTime).toString().length() >= 10) and ($this.start.exists() implies ($this.start as dateTime).toString().length() >= 10) and ($this.end.exists() implies ($this.end as dateTime).toString().length() >= 10)}
    choices: [effectiveDateTime]
    index: 9
  effectiveDateTime:
    type: dateTime
    constraint:
      vs-de-1: {human: 'If Observation.effective[x] has a value then that value shall be precise to the day', source: 'http://fhir.de/StructureDefinition/observation-de-ekg', severity: error, expression: (($this is dateTime) implies ($this as dateTime).toString().length() >= 10) and ($this.start.exists() implies ($this.start as dateTime).toString().length() >= 10) and ($this.end.exists() implies ($this.end as dateTime).toString().length() >= 10)}
    choiceOf: effective
    index: 10
  value:
    choices: []
    index: 12
  component:
    index: 13
    slicing:
      rules: open
      discriminator:
      - {path: code, type: pattern}
      min: 1
      slices:
        ekgLeads:
          match: {code: null}
          schema:
            short: 12 Kanal EKG Ableitungen
            array: true
            index: 14
            elements:
              code:
                binding: {strength: required, valueSet: 'http://fhir.de/ValueSet/EkgAbleitungenVS'}
                index: 15
                elements:
                  coding: {index: 16}
                required: [coding]
              value:
                choices: [valueSampledData]
                index: 18
              valueSampledData: {type: SampledData, choiceOf: value, index: 19}
              value[x]:
                elements:
                  data: {index: 20}
                required: [data]
            required: [valueSampledData, value]
        deprecatedLeadCodes:
          match: {code: null}
          schema:
            array: true
            index: 21
            elements:
              code:
                binding: {strength: required, valueSet: 'http://fhir.de/ValueSet/EkgLeads'}
                index: 22
                elements:
                  coding: {index: 23}
                required: [coding]
              value:
                choices: [valueSampledData]
                index: 25
              valueSampledData: {type: SampledData, choiceOf: value, index: 26}
              value[x]:
                elements:
                  data: {index: 27}
                required: [data]
            required: [valueSampledData, value]
package_version: 1.5.1-beta2
class: profile
kind: resource
url: http://fhir.de/StructureDefinition/observation-de-ekg
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.5.1
required: [effectiveDateTime, component, subject, category, effective]