description: 'A profile stating the rules, when exchanging a document including homecare observation (DA: Kommunale Prøvesvar).' package_name: medcom.fhir.dk.xdsdocuments derivation: constraint name: HomeCareObservationDocumentReference type: DocumentReference elements: category: short: '[DocumentEntry.classCode] Categorization of document.' binding: {strength: extensible, valueSet: 'http://medcomfhir.dk/ig/document/ValueSet/MedCom-ihe-core-classcode-VS-TEMP'} index: 23 elements: coding: elements: system: {mustSupport: true, index: 24} code: {mustSupport: true, index: 25} display: {mustSupport: true, index: 26} required: [display, system, code] content: mustSupport: true index: 35 elements: attachment: mustSupport: true index: 36 elements: contentType: short: '[DocumentEntry.mimeType] Mime type of the content, with charset etc.' binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/document/ValueSet/MedCom-ihe-core-mimetype-VS-TEMP'} mustSupport: true index: 37 language: short: '[DocumentEntry.languageCode] Human language of the content.' binding: {strength: extensible, valueSet: 'http://medcomfhir.dk/ig/document/ValueSet/MedCom-ihe-core-languagecode-VS-TEMP'} index: 38 url: {short: '[DocumentEntry.URI] URI where the data can be found.', mustSupport: true, index: 39} size: {short: '[DocumentEntry.size] Number of bytes of content.', mustSupport: true, index: 40} hash: {short: '[DocumentEntry.hash] Hash of the data (sha-1).', mustSupport: true, index: 41} title: {short: '[DocumentEntry.title] The readable title of the document.', mustSupport: true, index: 42} creation: short: '[DocumentEntry.creationTime] Date attachment was first created.' constraint: medcom-datetime-has-time-offset-zulu: {human: 'dateTime must include date, time, and time zone.', source: 'http://medcomfhir.dk/ig/xdsdocuments/StructureDefinition/homecare-observation-documentreference', 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: 43 required: [title, language, creation] format: short: '[DocumentEntry.formatCode] Format/content rules for the document.' binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/xdsdocuments/ValueSet/MedComHCOFormatCodeVS'} index: 44 elements: system: {mustSupport: true, index: 45} code: {mustSupport: true, index: 46} display: {mustSupport: true, index: 47} required: [display, system, code] required: [format] type: index: 21 elements: coding: binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/xdsdocuments/ValueSet/MedComHCOTypeCodeVS'} pattern: type: Coding value: {code: HCOM, system: 'http://medcomfhir.dk/ig/xdsmetadata/ValueSet/MedCom-xds-typecode-VS', display: HomeCareObservation message} index: 22 author: type: Reference short: |- [DocumentEntry.author] The slice author:institution ensures one mandatory organizational author. Any author element that does not match this slice is interpreted as an author person. refers: ['http://hl7.dk/fhir/core/StructureDefinition/dk-core-related-person', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization', 'http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-patient', 'http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitioner', 'http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitionerrole'] array: true max: 2 index: 28 slicing: rules: open discriminator: - {path: $this.resolve(), type: profile} min: null max: 2 slices: institution: match: {} schema: short: The organization who authored the document. refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization'] type: Reference mustSupport: true _required: true index: 29 min: 1 max: 1 extension: mustSupport: true index: 4 slicing: slices: versionid: match: {} schema: mustSupport: true index: 5 elements: value: pattern: {type: String, value: '2.0'} choices: [] index: 7 homeCommunityid: match: {} schema: type: Extension short: '[DocumentEntry.homeCommunityId] A unique identifier for a community where the DocumentEntry and document can be accessed.' mustSupport: true url: http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-homecommunityid-extension index: 8 elements: url: {mustSupport: true, index: 9} value: choices: [valueCoding] index: 11 slicing: slices: valueCoding: match: {} schema: choices: [valueCoding] index: 11 valueCoding: type: Coding choiceOf: value index: 12 slicing: slices: valueCoding: match: {} schema: {type: Coding, choiceOf: value, index: 12} masterIdentifier: short: '[DocumentEntry.uniqueId] Master Version Specific Identifier' mustSupport: true index: 13 elements: system: {mustSupport: true, index: 14} value: {mustSupport: true, index: 15} status: {short: '[DocumentEntry.availabilityStatus] current = active | superseded = deprecated.', mustSupport: true, index: 20} id: {mustSupport: true, index: 0} identifier: index: 16 slicing: slices: entryUUID: match: {} schema: short: '[DocumentEntry.entryUUID] Identifier for the document.' _required: true index: 17 elements: system: {mustSupport: true, index: 18} value: constraint: medcom-uuid: {human: The value shall correspond to the structure of an UUID, source: 'http://medcomfhir.dk/ig/xdsdocuments/StructureDefinition/homecare-observation-documentreference', severity: error, expression: '$this.matches(''(?i)^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[45][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'')'} mustSupport: true index: 19 context: mustSupport: true index: 48 elements: event: short: '[DocumentEntry.eventCodeList] Main clinical acts documented.' mustSupport: true index: 49 elements: coding: elements: system: {mustSupport: true, index: 50} code: {mustSupport: true, index: 51} required: [system, code] period: short: '[DocumentEntry.serviceStartTime, DocumentEntry.serviceStopTime] Time of service that is being documented.' index: 52 elements: start: {mustSupport: true, index: 53} end: {mustSupport: true, index: 54} required: [start] facilityType: short: '[DocumentEntry.healthcareFacilityTypeCode] Kind of facility where patient was seen.' binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/document/ValueSet/MedCom-ihe-core-HealthcareFacilityTypeCode-VS-TEMP'} index: 55 elements: coding: mustSupport: true index: 56 elements: system: {mustSupport: true, index: 57} code: {mustSupport: true, index: 58} display: {mustSupport: true, index: 59} required: [display, system, code] required: [coding] practiceSetting: short: '[DocumentEntry.practiceSettingCode] Additional details about where the content was created (e.g. clinical specialty).' binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/document/ValueSet/MedCom-ihe-core-PracticeSettingCode-VS-TEMP'} index: 60 elements: coding: mustSupport: true index: 61 elements: system: {mustSupport: true, index: 62} code: {mustSupport: true, index: 63} display: {mustSupport: true, index: 64} required: [display, system, code] required: [coding] sourcePatientInfo: type: Reference short: '[DocumentEntry.sourcePatientId and DocumentEntry.sourcePatientInfo] Patient demographics from source. Must be the same reference as in DocumentReference.subject.' refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-patient'] index: 65 elements: reference: {mustSupport: true, index: 66} identifier: {mustSupport: true, index: 67} required: [identifier, reference] related: {short: '[DocumentEntry.referenceIdList] Related identifiers or resources.', mustSupport: true, index: 68} required: [practiceSetting, sourcePatientInfo, period, facilityType] securityLabel: short: '[DocumentEntry.confidentialityCode] Document security-tags.' index: 31 elements: coding: mustSupport: true index: 32 elements: system: {mustSupport: true, index: 33} code: {mustSupport: true, index: 34} required: [system, code] required: [coding] subject: type: Reference short: '[DocumentEntry.sourcePatientInfo, DocumentEntry.sourcePatientId] Who/what is the subject of the document.' refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-patient'] index: 27 authenticator: type: Reference short: '[DocumentEntry.legalAuthenticator] Who authenticated the document.' mustSupport: true refers: ['http://hl7.dk/fhir/core/StructureDefinition/dk-core-organization', 'http://hl7.dk/fhir/core/StructureDefinition/dk-core-practitioner', 'http://hl7.dk/fhir/core/StructureDefinition/dk-core-practitioner-role'] index: 30 text: short: The narrative text SHALL always be included when exchanging a MedCom FHIR Bundle. mustSupport: true index: 1 elements: status: {mustSupport: true, index: 2} div: {mustSupport: true, index: 3} package_version: 0.1.0-homecareobservation-draft extensions: versionid: url: null mustSupport: true index: 5 elements: value: pattern: {type: String, value: '2.0'} choices: [] index: 7 homeCommunityid: url: http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-homecommunityid-extension type: Extension short: '[DocumentEntry.homeCommunityId] A unique identifier for a community where the DocumentEntry and document can be accessed.' mustSupport: true index: 8 elements: url: {mustSupport: true, index: 9} value: choices: [valueCoding] index: 11 slicing: slices: valueCoding: match: {} schema: choices: [valueCoding] index: 11 valueCoding: type: Coding choiceOf: value index: 12 slicing: slices: valueCoding: match: {} schema: {type: Coding, choiceOf: value, index: 12} class: profile kind: resource url: http://medcomfhir.dk/ig/xdsdocuments/StructureDefinition/homecare-observation-documentreference base: http://hl7.dk/fhir/core/StructureDefinition/dk-core-minimaldocumentreference version: 0.1.0-homecareobservation-draft required: [securityLabel, id, context, text, identifier, type, category]