description: Definition of the Observation for the diabetes mellitus package_name: rs/ch.fhir.ig.ch derivation: constraint name: CHCRLObservationDiabetesMellitus type: Observation elements: code: pattern: type: CodeableConcept value: coding: - {code: '73211009', system: 'http://snomed.info/sct', display: Diabetes mellitus (disorder)} type: CodeableConcept index: 0 subject: type: Reference short: Patient refers: ['http://fhir.ch/ig/ch-crl/StructureDefinition/ch-crl-patient'] index: 1 elements: reference: {index: 2} required: [reference] effective: choices: [] index: 4 effectiveDateTime: {type: dateTime, index: 5} performer: type: Reference short: Practitioner if resident physician or Organization Department if hospital refers: ['http://fhir.ch/ig/ch-crl/StructureDefinition/ch-crl-organization-department', 'http://fhir.ch/ig/ch-crl/StructureDefinition/ch-crl-practitioner'] index: 6 elements: reference: {index: 7} required: [reference] value: choices: [] index: 9 valueCodeableConcept: type: CodeableConcept short: The presence and severity of diabetes mellitus at the time of diagnosis as pre-existing medical condition. binding: {strength: preferred, valueSet: 'http://fhir.ch/ig/ch-crl/ValueSet/nkrs-diabetesmellitus'} constraint: nkrs-diabetesmellitus: {human: At least one of the codings should come from the preferred NKRS value set, source: 'http://fhir.ch/ig/ch-crl/StructureDefinition/ch-crl-observation-diabetesmellitus', severity: warning, expression: 'coding.where(code.memberOf(''http://fhir.ch/ig/ch-crl/ValueSet/nkrs-diabetesmellitus'')).exists()'} index: 10 elements: coding: index: 11 elements: system: {index: 12} code: {index: 13} display: {index: 14} required: [code, display, system] required: [coding] package_version: crl-0.9.0 class: profile kind: resource url: http://fhir.ch/ig/ch-crl/StructureDefinition/ch-crl-observation-diabetesmellitus base: http://hl7.org/fhir/StructureDefinition/Observation version: 0.9.0 required: [effective, effectiveDateTime, subject, value, valueCodeableConcept]