PackagesCanonicalsLogsProblems
    Packages
    medcom.fhir.dk.notes@1.0.0-trial-use
    http://medcomfhir.dk/ig/notes/StructureDefinition/medcom-notes-composition
description: A profile for the MedCom Notes Composition resource.
package_name: medcom.fhir.dk.notes
derivation: constraint
name: MedComNotesComposition
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: 'Last update of the note (Da: Seneste opdatering af notatet)', 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/notes/StructureDefinition/medcom-notes-composition', severity: error, expression: 'matches(''^.*[|]1[.].*$'')'}
        index: 0
  section:
    index: 17
    elements:
      entry:
        type: Reference
        refers: ['http://medcomfhir.dk/ig/notes/StructureDefinition/medcom-notes-observation']
        index: 18
    required: [entry]
  type:
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://snomed.info/sct'}
            index: 2
          code:
            pattern: {type: Code, value: '866144008'}
            index: 3
          display:
            pattern: {type: String, value: Encounter note}
            index: 4
  title: {short: Title MUST be 'Journalnotat for **CPR-nummer**', index: 13}
  author:
    type: Reference
    refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization', 'http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitioner']
    index: 10
    slicing:
      slices:
        institution:
          match: {}
          schema:
            type: Reference
            refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization']
            index: 11
        person:
          match: {}
          schema:
            short: The practitioner who authored the document.
            refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitioner']
            type: Reference
            mustSupport: true
            index: 12
          min: 0
          max: 1
  event:
    elements:
      period:
        elements:
          start:
            constraint:
              medcom-datetime-has-time-offset-zulu: {human: 'dateTime must include date, time, and time zone.', source: 'http://medcomfhir.dk/ig/notes/StructureDefinition/medcom-notes-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
          end:
            constraint:
              medcom-datetime-has-time-offset-zulu: {human: 'dateTime must include date, time, and time zone.', source: 'http://medcomfhir.dk/ig/notes/StructureDefinition/medcom-notes-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: 16
  language:
    pattern: {type: Code, value: da}
    index: 1
  confidentiality:
    pattern: {type: Code, value: N}
    index: 14
package_version: 1.0.0-trial-use
class: profile
kind: resource
url: http://medcomfhir.dk/ig/notes/StructureDefinition/medcom-notes-composition
base: http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-composition
version: 1.0.0-trial-use
required: [category]