description: null package_name: rs/healthhub.fhir derivation: constraint name: HealthHubCondition type: Condition elements: onset: choices: [onsetDateTime] index: 92 category: index: 34 elements: id: {index: 35} coding: index: 36 elements: id: {index: 37} version: {index: 38} code: {index: 39} userSelected: {index: 40} required: [code] text: {index: 41} required: [coding] clinicalStatus: {short: active | recurrence | relapse | inactive | remission | resolved | unknown, index: 32} meta: index: 0 elements: profile: {index: 1} required: [profile] stage: {index: 121} encounter: {index: 90} evidence: {index: 122} abatement: choices: [] index: 95 asserter: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner'] index: 109 elements: id: {index: 110} extension: {index: 111} type: {index: 112} identifier: elements: id: {index: 113} extension: {index: 114} use: {index: 115} type: {index: 116} system: binding: {strength: required, valueSet: 'https://healthhub.dk/fhir/ValueSet/employee-identifier-system'} index: 117 value: {index: 118} period: {index: 119} assigner: {index: 120} extensions: {} required: [system, value] extensions: {} note: index: 123 elements: id: {index: 124} author: choices: [authorReference, authorString] index: 126 authorReference: type: Reference choiceOf: author refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner'] index: 127 authorString: {type: string, choiceOf: author, index: 128} extension: array: true min: 1 max: 2 index: 2 slicing: slices: diagnosisCategory: match: {} schema: isModifier: false short: Diagnosis category type: Extension url: https://healthhub.dk/fhir/StructureDefinition/diagnosis-category index: 3 elements: id: {index: 4} value: choices: [] index: 6 required: [value] notFollowedAnymore: match: {} schema: type: Extension short: End date of the diagnosis. isModifier: false url: http://hl7.dk/fhir/core/StructureDefinition/NotFollowedAnymore index: 7 elements: id: {index: 8} recordedDate: {index: 96} recorder: type: Reference constraint: ref-1: {human: SHALL have a contained resource if a local reference is provided, severity: error, expression: reference.exists().not() or (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')))} refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner'] index: 97 elements: id: {index: 98} extension: {index: 99} type: {short: Type the reference refers to (e.g. "Practitioner"), index: 100} identifier: elements: id: {index: 101} extension: {index: 102} use: {index: 103} type: {index: 104} system: binding: {strength: required, valueSet: 'https://healthhub.dk/fhir/ValueSet/employee-identifier-system'} index: 105 value: {index: 106} period: {index: 107} assigner: {index: 108} extensions: {} required: [system, value] extensions: {} severity: {index: 42} code: short: Identification of the diagnosis index: 43 elements: id: {index: 44} coding: short: Code defined by a terminology system ICPC, SKS and ICD array: true min: 1 max: 3 index: 45 slicing: rules: open discriminator: - {path: system, type: value} min: 1 max: 3 slices: ICPC2: match: {system: 'urn:oid:1.2.208.176.2.31'} schema: index: 46 elements: id: {index: 47} system: pattern: {type: uri, value: 'urn:oid:1.2.208.176.2.31'} type: uri index: 48 version: {short: Version of the ICPC system, index: 49} code: {short: ICPC2 Code, index: 50} display: {short: ICPC2 Name, index: 51} userSelected: {index: 52} required: [code, display, system] SKS-D: match: {system: 'urn:oid:1.2.208.176.2.4.12'} schema: index: 53 elements: id: {index: 54} system: pattern: {type: uri, value: 'urn:oid:1.2.208.176.2.4.12'} type: uri index: 55 version: {short: SKS Version, index: 56} code: {short: SKS Code, index: 57} display: {short: SKS Name, index: 58} userSelected: {index: 59} required: [code, display, system] ICD10: match: {system: 'urn:oid:2.16.840.1.113883.6.3'} schema: index: 60 elements: id: {index: 61} system: pattern: {type: uri, value: 'urn:oid:2.16.840.1.113883.6.3'} type: uri index: 62 code: {index: 63} display: {index: 64} userSelected: {index: 65} required: [code, display, system] text: {index: 66} required: [coding] identifier: index: 9 extensions: {} elements: extension: {index: 10} type: index: 11 elements: coding: {index: 12} text: {index: 13} slicing: rules: open discriminator: - {path: system, type: value} min: null max: 1 slices: ProviderNumber: match: {system: 'urn:oid:1.2.208.176.1.4'} schema: index: 14 elements: id: {index: 15} extension: {index: 16} use: {index: 17} type: {index: 18} system: pattern: {type: uri, value: 'urn:oid:1.2.208.176.1.4'} type: uri index: 19 value: constraint: digits-providernumber: {human: ProviderNumber Identifiers are at minimum and maximum 6 digits long, severity: error, expression: 'matches(''^([0-9]){6}$'')', requirements: ProviderNumber Identifiers are at minimum and maximum 6 digits long} index: 20 period: {index: 21} assigner: {index: 22} extensions: {} required: [system, value] SOR-ID: match: {system: 'urn:oid:1.2.208.176.1.1'} schema: index: 23 elements: id: {index: 24} extension: {index: 25} use: {index: 26} type: {index: 27} system: pattern: {type: uri, value: 'urn:oid:1.2.208.176.1.1'} type: uri index: 28 value: constraint: min-digits-sor: {human: 'SOR Identifiers are at minimum 11 digits long. See https://sundhedsdatastyrelsen.dk/-/media/sds/filer/rammer-og-retningslinjer/organisationsregistrering/adgang-til-sor/info-om-opbygningen-af-sor-ider.pdf', severity: error, expression: 'matches(''^([0-9]){11,}$'')', requirements: SOR Identifiers are at minimum 11 digits long} index: 29 period: {index: 30} assigner: {index: 31} extensions: {} required: [system, value] onsetDateTime: {type: dateTime, choiceOf: onset, index: 93} bodySite: index: 67 elements: id: {index: 68} coding: index: 69 elements: display: {short: Højre eller venstre, index: 70} userSelected: {index: 71} slicing: rules: open discriminator: - {path: system, type: value} min: null slices: Laterality: match: {system: 'http://snomed.info/sct'} schema: array: true max: 2 index: 72 elements: id: {index: 73} system: pattern: {type: uri, value: 'http://snomed.info/sct'} type: uri index: 74 version: {index: 75} code: binding: {strength: required, valueSet: 'https://healthhub.dk/fhir/ValueSet/laterality'} index: 76 userSelected: {index: 77} required: [code, system] Hokus: match: {system: 'http://HealthHubHokus.dk'} schema: index: 78 elements: id: {index: 79} system: pattern: {type: uri, value: 'http://HealthHubHokus.dk'} type: uri index: 80 version: {index: 81} code: {short: Hokus, index: 82} userSelected: {index: 83} required: [code, system] text: {index: 84} verificationStatus: {index: 33} subject: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Patient'] index: 85 elements: id: {index: 86} reference: {index: 87} identifier: {index: 88} display: {index: 89} required: [reference] package_version: 1.0.2 extensions: diagnosisCategory: url: https://healthhub.dk/fhir/StructureDefinition/diagnosis-category isModifier: false short: Diagnosis category type: Extension index: 3 elements: id: {index: 4} value: choices: [] index: 6 required: [value] notFollowedAnymore: url: http://hl7.dk/fhir/core/StructureDefinition/NotFollowedAnymore type: Extension short: End date of the diagnosis. isModifier: false index: 7 elements: id: {index: 8} class: profile kind: resource url: https://healthhub.dk/fhir/StructureDefinition/healthhub-condition base: http://hl7.org/fhir/StructureDefinition/Condition version: null required: [code, extension, meta, recordedDate]