description: Lääkkeen lopettamispäivämäärä ja lääkkeen lopetuksen syy package_name: fi.kela.kanta.res.medication.r4 derivation: constraint name: MedicineDiscontinuation type: Extension elements: extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: stopDay: match: {url: stopDay} schema: short: Lääkkeen lopetuspäivä index: 1 elements: url: pattern: {type: Uri, value: stopDay} index: 2 value: short: Lääkkeen lopetuspäivä choices: [valueDateTime] index: 4 valueDateTime: {type: dateTime, short: Lääkkeen lopetuspäivä, choiceOf: value, index: 5} stopReasonCode: match: {url: stopReasonCode} schema: short: Lääkkeen lopetuksen syy. index: 6 elements: url: pattern: {type: Uri, value: stopReasonCode} index: 7 value: short: Lääkkeen lopetuksen syy. choices: [valueCoding] index: 9 valueCoding: {type: Coding, short: Lääkkeen lopetuksen syy., choiceOf: value, index: 10} value[x]: elements: system: short: THL - Lääkehoidon muutoksen syy koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.6.600.2013'} index: 11 code: {short: THL - Lääkehoidon muutoksen syy koodiston arvo, index: 12} url: pattern: {type: Uri, value: 'http://resepti.kanta.fi/StructureDefinition/extension/medicineDiscontinuation'} index: 13 value: choices: [] index: 15 package_version: 1.0.0 extensions: stopDay: url: stopDay short: Lääkkeen lopetuspäivä index: 1 elements: url: pattern: {type: Uri, value: stopDay} index: 2 value: short: Lääkkeen lopetuspäivä choices: [valueDateTime] index: 4 valueDateTime: {type: dateTime, short: Lääkkeen lopetuspäivä, choiceOf: value, index: 5} stopReasonCode: url: stopReasonCode short: Lääkkeen lopetuksen syy. index: 6 elements: url: pattern: {type: Uri, value: stopReasonCode} index: 7 value: short: Lääkkeen lopetuksen syy. choices: [valueCoding] index: 9 valueCoding: {type: Coding, short: Lääkkeen lopetuksen syy., choiceOf: value, index: 10} value[x]: elements: system: short: THL - Lääkehoidon muutoksen syy koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.6.600.2013'} index: 11 code: {short: THL - Lääkehoidon muutoksen syy koodiston arvo, index: 12} class: extension kind: complex-type url: http://resepti.kanta.fi/StructureDefinition/extension/medicineDiscontinuation base: http://hl7.org/fhir/StructureDefinition/Extension version: 1.0.0