description: Observation profile intended to be used in MedCom's Notes standard. package_name: medcom.fhir.dk.notes derivation: constraint name: MedComNotesObservation type: Observation elements: 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 note pattern: {type: Code, value: text/html} mustSupport: true index: 5 data: {short: 'Base64-encoded content of the note (Da: journalnotatet)', mustSupport: true, index: 6} required: [contentType, data] required: [value] status: short: Status MUST be final. pattern: {type: Code, value: final} index: 7 code: elements: coding: index: 8 slicing: slices: SNOMEDCT: match: {} schema: mustSupport: true _required: true index: 9 elements: system: {mustSupport: true, index: 10} code: pattern: {type: Code, value: '866144008'} mustSupport: true index: 11 display: pattern: {type: String, value: Encounter note} mustSupport: true index: 12 required: [display] required: [coding] effective: short: 'Date and time the note was created (Da: Oprettelsestidspunkt for notatet)' 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-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 choices: [effectiveDateTime] index: 14 effectiveDateTime: 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-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: 'Date and time the note was created (Da: Oprettelsestidspunkt for notatet)' type: dateTime mustSupport: true choiceOf: effective index: 15 performer: type: Reference short: 'Who is responsible for the note (Da: journalnotatet)' 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'] array: true max: 3 index: 16 slicing: rules: closed ordered: false discriminator: - {path: $this.resolve(), type: type} min: null max: 3 slices: practitionerRole: match: {} schema: type: Reference short: 'practitionerRole responsible for the note (Da: journalnotatet)' refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitionerrole'] index: 17 min: 0 max: 1 organization: match: {} schema: type: Reference short: 'organization responsible for the note (Da: journalnotatet)' refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization'] _required: true index: 18 min: 1 max: 1 practitioner: match: {} schema: type: Reference short: 'practitioner responsible for the note (Da: journalnotatet)' refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitioner'] index: 19 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 note pattern: {type: Code, value: text/html} mustSupport: true index: 5 data: {short: 'Base64-encoded content of the note (Da: journalnotatet)', mustSupport: true, index: 6} required: [contentType, data] required: [value] class: profile kind: resource url: http://medcomfhir.dk/ig/notes/StructureDefinition/medcom-notes-observation base: http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-observation version: 1.0.0 required: [effectiveDateTime, extension, effective]