PackagesCanonicalsLogsProblems
    Packages
    medcom.fhir.dk.ekg@1.0.0
    http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-composition
description: A profile for the MedCom Ekg Recording Composition resource.
package_name: medcom.fhir.dk.ekg
derivation: constraint
name: MedComEkgRecordingComposition
type: Composition
elements:
  category:
    index: 5
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://medcomfhir.dk/ig/xdsmetadata/CodeSystem/MedCom-ihe-classcode-CS'}
            index: 6
          code:
            pattern: {type: Code, value: '001'}
            index: 7
          display:
            pattern: {type: String, value: Klinisk rapport}
            index: 8
  date: {short: 'The clinical date and time when the clinical report represented by this Composition was finalized, typically equal to the event.period.end of the recorded EKG. If event.period.end is not available, use event.period.start or Observation.effectiveDateTime.', index: 9}
  meta:
    elements:
      profile:
        short: '[DocumentEntry.formatCode] The profile canonical SHALL include the major and minor version of the standard in the form `|x.y`.'
        constraint:
          medcom-canonical-fixed-major: {human: 'If a version is present in the canonical, MAJOR SHALL be a fixed value.', source: 'http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-composition', severity: error, expression: 'matches(''^.*[|]1[.].*$'')'}
        index: 0
  section:
    elements:
      entry:
        type: Reference
        refers: ['http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-observation']
        index: 16
    required: [entry]
  type:
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://loinc.org'}
            index: 2
          code:
            pattern: {type: Code, value: 11524-6}
            index: 3
          display:
            pattern: {type: String, value: EKG study}
            index: 4
  title:
    short: Title MUST be 'Elektrokardiogram-12-aflednings'
    pattern: {type: String, value: Elektrokardiogram-12-aflednings}
    index: 12
  author:
    type: Reference
    refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization', 'http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitioner', 'http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitionerrole']
    index: 10
    slicing:
      slices:
        institution:
          match: {}
          schema:
            type: Reference
            refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization']
            index: 11
  event:
    elements:
      period:
        elements:
          start:
            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-composition', 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})$'')'}
            index: 14
          end:
            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-composition', 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})$'')'}
            index: 15
  language:
    pattern: {type: Code, value: da}
    index: 1
  confidentiality:
    pattern: {type: Code, value: N}
    index: 13
package_version: 1.0.0
class: profile
kind: resource
url: http://medcomfhir.dk/ig/ekg/StructureDefinition/medcom-ekg-recording-composition
base: http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-composition
version: 1.0.0
required: [category]