PackagesCanonicalsLogsProblems
    Packages
    medcom.fhir.dk.ekg@1.0.0
    http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-observation
description: Observation profile intended to be used in MedCom's Ekg Recording standard.
package_name: medcom.fhir.dk.ekg
derivation: constraint
name: MedComEkgRecordingObservation
type: Observation
elements:
  note:
    short: Free-text note, used to document relevant measurement-related remarks. Line breaks in FHIR string values must be represented as escaped newline characters \n in JSON and either as a literal newline in the element text or as the character reference 
 in XML.
    mustSupport: true
    index: 27
    elements:
      text: {maxLength: 1024, mustSupport: true, index: 28}
  effective[x]:
    elements:
      start:
        short: The start time of the EKG recording
        constraint:
          medcom-datetime-has-time-offset-zulu: {human: 'dateTime must include date, time, and time zone.', source: 'http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-observation', severity: error, expression: '$this.toString().matches(''^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$'')'}
        mustSupport: true
        index: 24
      end:
        short: The end time of the EKG recording
        constraint:
          medcom-datetime-has-time-offset-zulu: {human: 'dateTime must include date, time, and time zone.', source: 'http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-observation', severity: error, expression: '$this.toString().matches(''^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$'')'}
        mustSupport: true
        index: 25
    required: [start]
  extension:
    index: 0
    slicing:
      slices:
        valueAttachment:
          match: {}
          schema:
            mustSupport: true
            _required: true
            index: 1
            elements:
              url: {mustSupport: true, index: 2}
              value:
                mustSupport: true
                choices: []
                index: 4
              value[x]:
                elements:
                  contentType:
                    short: MIME type of the attached EKG recording.
                    pattern: {type: Code, value: application/pdf}
                    mustSupport: true
                    index: 5
                  data: {short: Base64-encoded content of the EKG recording PDF/A document., mustSupport: true, index: 6}
                  title:
                    mustSupport: true
                    pattern: {type: String, value: Elektrokardiogram-12-aflednings}
                    index: 7
                required: [title, contentType, data]
            required: [value]
  effectiveDateTime:
    constraint:
      medcom-datetime-has-time-offset-zulu: {human: 'dateTime must include date, time, and time zone.', source: 'http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-observation', severity: error, expression: '$this.toString().matches(''^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$'')'}
    short: The time of the EKG recording. Use this if effectivePeriod.start is unknown.
    type: dateTime
    mustSupport: true
    choiceOf: effective
    index: 20
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema:
            constraint:
              medcom-datetime-has-time-offset-zulu: {human: 'dateTime must include date, time, and time zone.', source: 'http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-observation', severity: error, expression: '$this.toString().matches(''^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$'')'}
            short: The time of the EKG recording. Use this if effectivePeriod.start is unknown.
            type: dateTime
            mustSupport: true
            choiceOf: effective
            index: 20
          min: 0
          max: 1
  status:
    short: Status MUST be final.
    pattern: {type: Code, value: final}
    index: 8
  effective:
    mustSupport: true
    choices: [effectivePeriod]
    index: 22
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            mustSupport: true
            choices: [effectivePeriod]
            index: 22
          min: 0
          max: 1
  code:
    elements:
      coding:
        index: 9
        slicing:
          slices:
            LOINC:
              match: {}
              schema:
                mustSupport: true
                _required: true
                index: 10
                elements:
                  system: {mustSupport: true, index: 11}
                  code:
                    pattern: {type: Code, value: 11524-6}
                    mustSupport: true
                    index: 12
                  display:
                    pattern: {type: String, value: EKG study}
                    mustSupport: true
                    index: 13
                required: [display]
    required: [coding]
  performer:
    type: Reference
    refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization']
    index: 26
  effectivePeriod:
    type: Period
    mustSupport: true
    choiceOf: effective
    index: 23
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, mustSupport: true, choiceOf: effective, index: 23}
          min: 0
          max: 1
package_version: 1.0.0
extensions:
  valueAttachment:
    url: null
    mustSupport: true
    _required: true
    index: 1
    elements:
      url: {mustSupport: true, index: 2}
      value:
        mustSupport: true
        choices: []
        index: 4
      value[x]:
        elements:
          contentType:
            short: MIME type of the attached EKG recording.
            pattern: {type: Code, value: application/pdf}
            mustSupport: true
            index: 5
          data: {short: Base64-encoded content of the EKG recording PDF/A document., mustSupport: true, index: 6}
          title:
            mustSupport: true
            pattern: {type: String, value: Elektrokardiogram-12-aflednings}
            index: 7
        required: [title, contentType, data]
    required: [value]
class: profile
kind: resource
url: http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-observation
base: http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-observation
version: 1.0.0
required: [effectiveDateTime, effectivePeriod, note, extension, effective]