description: FUT like eHealth Observation for daily hours of sleep package_name: hl7.fhir.dk.hackathons derivation: constraint name: SleepObservation type: Observation elements: value[x]: elements: unit: pattern: {type: String, value: Hours} index: 11 valueQuantity: {type: Quantity, short: Hours of sleep, choiceOf: value, index: 10} value: short: Hours of sleep choices: [valueQuantity] index: 9 component: {index: 12} extension: index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: workflow-episodeOfCare: match: {url: null} schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare', index: 1} min: 1 max: 1 effective: choices: [effectivePeriod] index: 5 code: pattern: type: CodeableConcept value: coding: - {code: '248263006', system: 'http://snomed.info/sct'} index: 2 subject: type: Reference refers: ['http://hl7.dk/fhir/hackathons/StructureDefinition/TelemedicinePatient'] index: 3 performer: type: Reference refers: ['http://hl7.dk/fhir/hackathons/StructureDefinition/TelemedicinePatient'] index: 7 effectivePeriod: {type: Period, choiceOf: effective, index: 6} package_version: 1.0.0 extensions: workflow-episodeOfCare: {url: 'http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare', min: 1, max: 1, type: Extension, index: 1} class: profile kind: resource url: http://hl7.dk/fhir/hackathons/StructureDefinition/SleepObservation base: http://hl7.org/fhir/StructureDefinition/Observation version: 1.0.0 required: [effectivePeriod, extension, value, subject, valueQuantity, effective, performer]