description: 'Lääkemääräyksen tilatiedot: Lääkemääräyksen lukitustila, Lääkemääräyksen varaustila, Uusimispyynnön tila ja Lääkemääräyksen toimitustila. Jos Historiahaussa ja Historiahaussa ilman käytössä olevan lääkkeen tunnisteita palautuu lääkemääräyksen vanhoja versioita, näille vanhoille versioille ei palauteta tätä laajennosta.' package_name: fi.kela.kanta.res.medication.r4 derivation: constraint name: StatusInformation type: Extension elements: extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: lockStatus: match: {url: lockStatus} schema: short: Lääkemääräyksen lukitustila index: 1 elements: url: pattern: {type: Uri, value: lockStatus} index: 2 value: short: Lääkemääräyksen lukitustila choices: [valueCoding] index: 4 valueCoding: {type: Coding, short: Lääkemääräyksen lukitustila, choiceOf: value, index: 5} value[x]: elements: system: short: Sähköinen lääkemääräys - Lääkemääräyksen lukitustilat koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40124.2006'} index: 6 code: {short: Sähköinen lääkemääräys - Lääkemääräyksen lukitustilat koodiston arvo, index: 7} required: [system, code] required: [valueCoding, value] reservedStatus: match: {url: reservedStatus} schema: short: Lääkemääräyksen varaustila ja toimitusvarauksen tehneen organisaation tunnus (OID) index: 8 extensions: reservedStatus: url: reservedStatus short: Lääkemääräyksen varaustila index: 10 elements: url: pattern: {type: Uri, value: reservedStatus} index: 11 value: short: Lääkemääräyksen varaustila choices: [valueCoding] index: 13 valueCoding: {type: Coding, short: Lääkemääräyksen varaustila, choiceOf: value, index: 14} value[x]: elements: system: short: Sähköinen lääkemääräys - Lääkemääräyksen varaustilat koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40122.2006'} index: 15 code: {short: Sähköinen lääkemääräys - Lääkemääräyksen varaustilat koodiston arvo, index: 16} required: [system, code] required: [valueCoding, value] reservedLockOwner: url: reservedLockOwner short: Toimitusvarauksen tehneen organisaation tieto (OID) index: 17 elements: url: pattern: {type: Uri, value: reservedLockOwner} index: 18 value: short: Toimitusvarauksen tehneen organisaation tieto (OID) choices: [valueIdentifier] index: 20 valueIdentifier: {type: Identifier, short: Toimitusvarauksen tehneen organisaation tieto (OID), choiceOf: value, index: 21} required: [valueIdentifier, value] elements: valueBase64Binary: {type: base64Binary, choiceOf: value, index: 25} valueAge: {type: Age, choiceOf: value, index: 45} valueParameterDefinition: {type: ParameterDefinition, choiceOf: value, index: 69} valueTiming: {type: Timing, choiceOf: value, index: 64} valueCode: {type: code, choiceOf: value, index: 28} valueReference: {type: Reference, choiceOf: value, index: 61} valueContributor: {type: Contributor, choiceOf: value, index: 66} valueContactDetail: {type: ContactDetail, choiceOf: value, index: 65} valueUri: {type: uri, choiceOf: value, index: 41} valueUsageContext: {type: UsageContext, choiceOf: value, index: 72} valueTime: {type: time, choiceOf: value, index: 39} valueDecimal: {type: decimal, choiceOf: value, index: 31} valueCanonical: {type: canonical, choiceOf: value, index: 27} valueMarkdown: {type: markdown, choiceOf: value, index: 35} valueIdentifier: {type: Identifier, choiceOf: value, index: 55} valueTriggerDefinition: {type: TriggerDefinition, choiceOf: value, index: 71} valueQuantity: {type: Quantity, choiceOf: value, index: 58} value: choices: [valueBase64Binary, valueBoolean, valueCanonical, valueCode, valueDate, valueDateTime, valueDecimal, valueId, valueInstant, valueInteger, valueMarkdown, valueOid, valuePositiveInt, valueString, valueTime, valueUnsignedInt, valueUri, valueUrl, valueUuid, valueAddress, valueAge, valueAnnotation, valueAttachment, valueCodeableConcept, valueCoding, valueContactPoint, valueCount, valueDistance, valueDuration, valueHumanName, valueIdentifier, valueMoney, valuePeriod, valueQuantity, valueRange, valueRatio, valueReference, valueSampledData, valueSignature, valueTiming, valueContactDetail, valueContributor, valueDataRequirement, valueExpression, valueParameterDefinition, valueRelatedArtifact, valueTriggerDefinition, valueUsageContext, valueDosage] index: 24 valueCount: {type: Count, choiceOf: value, index: 51} valueString: {type: string, choiceOf: value, index: 38} valueRatio: {type: Ratio, choiceOf: value, index: 60} valueBoolean: {type: boolean, choiceOf: value, index: 26} valueInstant: {type: instant, choiceOf: value, index: 33} valueDateTime: {type: dateTime, choiceOf: value, index: 30} valueDate: {type: date, choiceOf: value, index: 29} valueDuration: {type: Duration, choiceOf: value, index: 53} valueDataRequirement: {type: DataRequirement, choiceOf: value, index: 67} valueMoney: {type: Money, choiceOf: value, index: 56} valueCoding: {type: Coding, choiceOf: value, index: 49} valueExpression: {type: Expression, choiceOf: value, index: 68} extension: index: 9 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: reservedStatus: match: {url: reservedStatus} schema: short: Lääkemääräyksen varaustila index: 10 elements: url: pattern: {type: Uri, value: reservedStatus} index: 11 value: short: Lääkemääräyksen varaustila choices: [valueCoding] index: 13 valueCoding: {type: Coding, short: Lääkemääräyksen varaustila, choiceOf: value, index: 14} value[x]: elements: system: short: Sähköinen lääkemääräys - Lääkemääräyksen varaustilat koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40122.2006'} index: 15 code: {short: Sähköinen lääkemääräys - Lääkemääräyksen varaustilat koodiston arvo, index: 16} required: [system, code] required: [valueCoding, value] reservedLockOwner: match: {url: reservedLockOwner} schema: short: Toimitusvarauksen tehneen organisaation tieto (OID) index: 17 elements: url: pattern: {type: Uri, value: reservedLockOwner} index: 18 value: short: Toimitusvarauksen tehneen organisaation tieto (OID) choices: [valueIdentifier] index: 20 valueIdentifier: {type: Identifier, short: Toimitusvarauksen tehneen organisaation tieto (OID), choiceOf: value, index: 21} required: [valueIdentifier, value] valueSampledData: {type: SampledData, choiceOf: value, index: 62} valueDosage: {type: Dosage, choiceOf: value, index: 73} valueContactPoint: {type: ContactPoint, choiceOf: value, index: 50} url: pattern: {type: Uri, value: reservedStatus} index: 22 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 48} valueAnnotation: {type: Annotation, choiceOf: value, index: 46} valuePeriod: {type: Period, choiceOf: value, index: 57} valueDistance: {type: Distance, choiceOf: value, index: 52} valueRange: {type: Range, choiceOf: value, index: 59} valueSignature: {type: Signature, choiceOf: value, index: 63} valueUuid: {type: uuid, choiceOf: value, index: 43} valueInteger: {type: integer, choiceOf: value, index: 34} valueHumanName: {type: HumanName, choiceOf: value, index: 54} valueUnsignedInt: {type: unsignedInt, choiceOf: value, index: 40} valueAttachment: {type: Attachment, choiceOf: value, index: 47} valueOid: {type: oid, choiceOf: value, index: 36} valueAddress: {type: Address, choiceOf: value, index: 44} valueRelatedArtifact: {type: RelatedArtifact, choiceOf: value, index: 70} valuePositiveInt: {type: positiveInt, choiceOf: value, index: 37} valueId: {type: id, choiceOf: value, index: 32} valueUrl: {type: url, choiceOf: value, index: 42} renewalStatus: match: {url: renewalStatus} schema: short: Uusimispyynnön tila index: 74 elements: url: pattern: {type: Uri, value: renewalStatus} index: 75 value: short: Uusimispyynnön tila choices: [valueCoding] index: 77 valueCoding: {type: Coding, short: Uusimispyynnön tila, choiceOf: value, index: 78} value[x]: elements: system: short: Sähköinen lääkemääräys - Uusimispyynnön tila koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40106.2006'} index: 79 code: {short: Sähköinen lääkemääräys - Uusimispyynnön tila koodiston arvo, index: 80} required: [system, code] required: [valueCoding, value] dispenseStatus: match: {url: dispenseStatus} schema: short: Lääkemääräyksen toimitustila index: 81 elements: url: pattern: {type: Uri, value: dispenseStatus} index: 82 value: short: Lääkemääräyksen toimitustila choices: [valueCoding] index: 84 valueCoding: {type: Coding, short: Lääkemääräyksen toimitustila, choiceOf: value, index: 85} value[x]: elements: system: short: Sähköinen lääkemääräys - Lääkemääräyksen toimitustilat koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40123.2006'} index: 86 code: {short: Sähköinen lääkemääräys - Lääkemääräyksen toimitustilat koodiston arvo, index: 87} required: [system, code] required: [valueCoding, value] url: pattern: {type: Uri, value: 'http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusInformation'} index: 88 value: choices: [] index: 90 package_version: 1.0.0 extensions: lockStatus: url: lockStatus short: Lääkemääräyksen lukitustila index: 1 elements: url: pattern: {type: Uri, value: lockStatus} index: 2 value: short: Lääkemääräyksen lukitustila choices: [valueCoding] index: 4 valueCoding: {type: Coding, short: Lääkemääräyksen lukitustila, choiceOf: value, index: 5} value[x]: elements: system: short: Sähköinen lääkemääräys - Lääkemääräyksen lukitustilat koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40124.2006'} index: 6 code: {short: Sähköinen lääkemääräys - Lääkemääräyksen lukitustilat koodiston arvo, index: 7} required: [system, code] required: [valueCoding, value] reservedStatus: url: reservedStatus short: Lääkemääräyksen varaustila ja toimitusvarauksen tehneen organisaation tunnus (OID) index: 8 extensions: reservedStatus: url: reservedStatus short: Lääkemääräyksen varaustila index: 10 elements: url: pattern: {type: Uri, value: reservedStatus} index: 11 value: short: Lääkemääräyksen varaustila choices: [valueCoding] index: 13 valueCoding: {type: Coding, short: Lääkemääräyksen varaustila, choiceOf: value, index: 14} value[x]: elements: system: short: Sähköinen lääkemääräys - Lääkemääräyksen varaustilat koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40122.2006'} index: 15 code: {short: Sähköinen lääkemääräys - Lääkemääräyksen varaustilat koodiston arvo, index: 16} required: [system, code] required: [valueCoding, value] reservedLockOwner: url: reservedLockOwner short: Toimitusvarauksen tehneen organisaation tieto (OID) index: 17 elements: url: pattern: {type: Uri, value: reservedLockOwner} index: 18 value: short: Toimitusvarauksen tehneen organisaation tieto (OID) choices: [valueIdentifier] index: 20 valueIdentifier: {type: Identifier, short: Toimitusvarauksen tehneen organisaation tieto (OID), choiceOf: value, index: 21} required: [valueIdentifier, value] elements: valueBase64Binary: {type: base64Binary, choiceOf: value, index: 25} valueAge: {type: Age, choiceOf: value, index: 45} valueParameterDefinition: {type: ParameterDefinition, choiceOf: value, index: 69} valueTiming: {type: Timing, choiceOf: value, index: 64} valueCode: {type: code, choiceOf: value, index: 28} valueReference: {type: Reference, choiceOf: value, index: 61} valueContributor: {type: Contributor, choiceOf: value, index: 66} valueContactDetail: {type: ContactDetail, choiceOf: value, index: 65} valueUri: {type: uri, choiceOf: value, index: 41} valueUsageContext: {type: UsageContext, choiceOf: value, index: 72} valueTime: {type: time, choiceOf: value, index: 39} valueDecimal: {type: decimal, choiceOf: value, index: 31} valueCanonical: {type: canonical, choiceOf: value, index: 27} valueMarkdown: {type: markdown, choiceOf: value, index: 35} valueIdentifier: {type: Identifier, choiceOf: value, index: 55} valueTriggerDefinition: {type: TriggerDefinition, choiceOf: value, index: 71} valueQuantity: {type: Quantity, choiceOf: value, index: 58} value: choices: [valueBase64Binary, valueBoolean, valueCanonical, valueCode, valueDate, valueDateTime, valueDecimal, valueId, valueInstant, valueInteger, valueMarkdown, valueOid, valuePositiveInt, valueString, valueTime, valueUnsignedInt, valueUri, valueUrl, valueUuid, valueAddress, valueAge, valueAnnotation, valueAttachment, valueCodeableConcept, valueCoding, valueContactPoint, valueCount, valueDistance, valueDuration, valueHumanName, valueIdentifier, valueMoney, valuePeriod, valueQuantity, valueRange, valueRatio, valueReference, valueSampledData, valueSignature, valueTiming, valueContactDetail, valueContributor, valueDataRequirement, valueExpression, valueParameterDefinition, valueRelatedArtifact, valueTriggerDefinition, valueUsageContext, valueDosage] index: 24 valueCount: {type: Count, choiceOf: value, index: 51} valueString: {type: string, choiceOf: value, index: 38} valueRatio: {type: Ratio, choiceOf: value, index: 60} valueBoolean: {type: boolean, choiceOf: value, index: 26} valueInstant: {type: instant, choiceOf: value, index: 33} valueDateTime: {type: dateTime, choiceOf: value, index: 30} valueDate: {type: date, choiceOf: value, index: 29} valueDuration: {type: Duration, choiceOf: value, index: 53} valueDataRequirement: {type: DataRequirement, choiceOf: value, index: 67} valueMoney: {type: Money, choiceOf: value, index: 56} valueCoding: {type: Coding, choiceOf: value, index: 49} valueExpression: {type: Expression, choiceOf: value, index: 68} extension: index: 9 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: reservedStatus: match: {url: reservedStatus} schema: short: Lääkemääräyksen varaustila index: 10 elements: url: pattern: {type: Uri, value: reservedStatus} index: 11 value: short: Lääkemääräyksen varaustila choices: [valueCoding] index: 13 valueCoding: {type: Coding, short: Lääkemääräyksen varaustila, choiceOf: value, index: 14} value[x]: elements: system: short: Sähköinen lääkemääräys - Lääkemääräyksen varaustilat koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40122.2006'} index: 15 code: {short: Sähköinen lääkemääräys - Lääkemääräyksen varaustilat koodiston arvo, index: 16} required: [system, code] required: [valueCoding, value] reservedLockOwner: match: {url: reservedLockOwner} schema: short: Toimitusvarauksen tehneen organisaation tieto (OID) index: 17 elements: url: pattern: {type: Uri, value: reservedLockOwner} index: 18 value: short: Toimitusvarauksen tehneen organisaation tieto (OID) choices: [valueIdentifier] index: 20 valueIdentifier: {type: Identifier, short: Toimitusvarauksen tehneen organisaation tieto (OID), choiceOf: value, index: 21} required: [valueIdentifier, value] valueSampledData: {type: SampledData, choiceOf: value, index: 62} valueDosage: {type: Dosage, choiceOf: value, index: 73} valueContactPoint: {type: ContactPoint, choiceOf: value, index: 50} url: pattern: {type: Uri, value: reservedStatus} index: 22 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 48} valueAnnotation: {type: Annotation, choiceOf: value, index: 46} valuePeriod: {type: Period, choiceOf: value, index: 57} valueDistance: {type: Distance, choiceOf: value, index: 52} valueRange: {type: Range, choiceOf: value, index: 59} valueSignature: {type: Signature, choiceOf: value, index: 63} valueUuid: {type: uuid, choiceOf: value, index: 43} valueInteger: {type: integer, choiceOf: value, index: 34} valueHumanName: {type: HumanName, choiceOf: value, index: 54} valueUnsignedInt: {type: unsignedInt, choiceOf: value, index: 40} valueAttachment: {type: Attachment, choiceOf: value, index: 47} valueOid: {type: oid, choiceOf: value, index: 36} valueAddress: {type: Address, choiceOf: value, index: 44} valueRelatedArtifact: {type: RelatedArtifact, choiceOf: value, index: 70} valuePositiveInt: {type: positiveInt, choiceOf: value, index: 37} valueId: {type: id, choiceOf: value, index: 32} valueUrl: {type: url, choiceOf: value, index: 42} renewalStatus: url: renewalStatus short: Uusimispyynnön tila index: 74 elements: url: pattern: {type: Uri, value: renewalStatus} index: 75 value: short: Uusimispyynnön tila choices: [valueCoding] index: 77 valueCoding: {type: Coding, short: Uusimispyynnön tila, choiceOf: value, index: 78} value[x]: elements: system: short: Sähköinen lääkemääräys - Uusimispyynnön tila koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40106.2006'} index: 79 code: {short: Sähköinen lääkemääräys - Uusimispyynnön tila koodiston arvo, index: 80} required: [system, code] required: [valueCoding, value] dispenseStatus: url: dispenseStatus short: Lääkemääräyksen toimitustila index: 81 elements: url: pattern: {type: Uri, value: dispenseStatus} index: 82 value: short: Lääkemääräyksen toimitustila choices: [valueCoding] index: 84 valueCoding: {type: Coding, short: Lääkemääräyksen toimitustila, choiceOf: value, index: 85} value[x]: elements: system: short: Sähköinen lääkemääräys - Lääkemääräyksen toimitustilat koodiston OID pattern: {type: Uri, value: 'urn:oid:1.2.246.537.5.40123.2006'} index: 86 code: {short: Sähköinen lääkemääräys - Lääkemääräyksen toimitustilat koodiston arvo, index: 87} required: [system, code] required: [valueCoding, value] class: extension kind: complex-type url: http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusInformation base: http://hl7.org/fhir/StructureDefinition/Extension version: '0.1'