description: This observation describes how long or how much of a medication is left package_name: de.gematik.erp derivation: constraint name: ERPServiceRequestRemainingMedication type: Observation elements: status: pattern: {type: Code, value: final} index: 0 code: binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/medication-observation-vs'} mustSupport: true index: 1 elements: coding: elements: code: short: Identifies this observation as an indication of the remaining range of a medication pattern: {type: Code, value: range-of-medication} index: 2 subject: type: Reference short: Reference of the patient receiving the medication mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Patient'] index: 3 value: short: Indication of the remaining range in quantity or date on which the medication expires mustSupport: true choices: [valueQuantity, valueDateTime] index: 5 valueQuantity: {type: Quantity, short: Indication of the remaining range in quantity or date on which the medication expires, mustSupport: true, choiceOf: value, index: 6} valueDateTime: {type: dateTime, short: Indication of the remaining range in quantity or date on which the medication expires, mustSupport: true, choiceOf: value, index: 7} package_version: servicerequest-1.0.1 class: profile kind: resource url: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-remaining-medication base: http://hl7.org/fhir/StructureDefinition/Observation version: '1.0' required: [valueDateTime, value, subject, valueQuantity]