UPTIS FHIR PoC Test Implementation Guide
1.0.0 - draft
UPTIS FHIR PoC Test Implementation Guide, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/FHIR-PoC/ and changes regularly. See the Directory of published versions
Official URL: https://fhir.ee/StructureDefinition/ee-tis-medication-dispense | Version: 1.0.0 | |||
Draft as of 2023-10-03 | Computable Name: EETISMedicationDispense |
Väljamüük. When the medication prescribed is dispensed in pharmacy.
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from MedicationDispense
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
MedicationDispense | 0..* | MedicationDispense | Ravimi väljamüük patsiendile. | |
contained | 0..0 | |||
Slices for extension | Content/Rules for all slices | |||
extensionTISDiscountRate | 0..* | (Complex) | 0 | 50 | 75 | 90 | 100 URL: https://fhir.ee/StructureDefinition/ee-tis-discount-rate | |
value[x] | 0..1 | CodeableConcept | SOODUSMÄÄR. LOEND. Value of extension | |
extensionEETISBuyerEPC | 0..* | (Complex) | Ostja. Keegi teine kui see, kellele ravim välja kirjutati. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |
value[x] | 1..1 | string, Identifier | OSTJA ISIKUKOOD | |
identifier | 0..0 | |||
basedOn | 0..0 | |||
partOf | 0..0 | |||
notPerformedReason | 0..0 | |||
statusChanged | 0..0 | |||
category | 0..0 | |||
medication | 1..1 | CodeableReference(EETISMedicationEPC) {r} | Väljastatud ravim | |
concept | 0..0 | |||
reference | 0..1 | Reference(EETISMedicationEPC) {r} | Reference to a resource (by instance) | |
subject | 1..1 | Reference(EEBasePatient) {r} | Patsient, kellele ravim väljastatakse | |
encounter | 0..0 | |||
supportingInformation | 0..0 | |||
performer | 1..1 | BackboneElement | Väljastuse teostaja | |
function | 0..0 | |||
actor | 1..1 | Reference(EETISPractitionerRole) | Proviisor või farmatseut, kellel on õigus väljastada ravimit | |
location | 0..1 | Reference(EETISPharmacyLocation) | Apteegi tegevuskoha kood | |
identifier | 0..1 | Identifier | APTEEGI TEGEVUSKOHA KOOD. Logical reference, when literal reference is not known | |
authorizingPrescription | 1..* | Reference(EETISMedicationRequest) | Retsept, mille alusel ravim väljastati patsiendile. | |
type | 0..0 | |||
quantity | 1..1 | SimpleQuantity | Väljastatud ravimi kogus | |
unit | 0..0 | |||
system | 0..0 | |||
code | 0..0 | |||
daysSupply | 0..0 | |||
recorded | 0..0 | |||
whenPrepared | 0..0 | |||
whenHandedOver | 1..1 | dateTime | Väljastamise aeg | |
destination | 0..0 | |||
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | KUI RAVIMI OSTAB VÄLJA KEEGI TEINE KUI SEE, KELLELE RAVIM ON VÄLJAKIRJUTATUD EI KASUTATA SEDA VAID ExtensionEETISBuyerEPC. Who collected the medication or where the medication was delivered | |
identifier | 1..1 | Identifier | OSTJA ISIKUKOOD. Logical reference, when literal reference is not known | |
system | 1..1 | uri | The namespace for the identifier value Fixed Value: https://fhir.ee/ValueSet/ee-patient-identity | |
note | 0..1 | Annotation | Kommentaar väljastuse kohta. | |
author[x] | 0..0 | |||
renderedDosageInstruction | 0..0 | |||
dosageInstruction | 0..0 | |||
substitution | 0..0 | |||
eventHistory | 0..0 | |||
Documentation for this format |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
MedicationDispense | C | 0..* | MedicationDispense | Ravimi väljamüük patsiendile. mdd-1: whenHandedOver cannot be before whenPrepared |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
Slices for extension | Content/Rules for all slices | |||
extensionTISDiscountRate | 0..* | (Complex) | 0 | 50 | 75 | 90 | 100 URL: https://fhir.ee/StructureDefinition/ee-tis-discount-rate | |
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-discount-rate" | |
value[x] | 0..1 | CodeableConcept | SOODUSMÄÄR. LOEND. Value of extension Binding: https://fhir.ee/CodeSystem/retsepti-soodustuse-maar (preferred): Discount rate | |
extensionEETISBuyerEPC | 0..* | (Complex) | Ostja. Keegi teine kui see, kellele ravim välja kirjutati. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-buyer-epc" | |
value[x] | 1..1 | OSTJA ISIKUKOOD Binding: https://fhir.ee/ValueSet/ee-identity-system (preferred): Identity System | ||
valueString | string | |||
valueIdentifier | Identifier | |||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
status | ?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: MedicationDispenseStatusCodes (required): Describes the lifecycle of the dispense. |
medication | Σ | 1..1 | CodeableReference(EETISMedicationEPC) {r} | Väljastatud ravim Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed. |
reference | Σ | 0..1 | Reference(EETISMedicationEPC) {r} | Reference to a resource (by instance) |
subject | Σ | 1..1 | Reference(EEBasePatient) {r} | Patsient, kellele ravim väljastatakse |
performer | 1..1 | BackboneElement | Väljastuse teostaja | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
actor | 1..1 | Reference(EETISPractitionerRole) | Proviisor või farmatseut, kellel on õigus väljastada ravimit | |
location | 0..1 | Reference(EETISPharmacyLocation) | Apteegi tegevuskoha kood | |
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL |
identifier | ΣC | 0..1 | Identifier | APTEEGI TEGEVUSKOHA KOOD. Logical reference, when literal reference is not known |
authorizingPrescription | 1..* | Reference(EETISMedicationRequest) | Retsept, mille alusel ravim väljastati patsiendile. | |
quantity | 1..1 | SimpleQuantity | Väljastatud ravimi kogus | |
whenHandedOver | C | 1..1 | dateTime | Väljastamise aeg |
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | KUI RAVIMI OSTAB VÄLJA KEEGI TEINE KUI SEE, KELLELE RAVIM ON VÄLJAKIRJUTATUD EI KASUTATA SEDA VAID ExtensionEETISBuyerEPC. Who collected the medication or where the medication was delivered | |
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL |
identifier | ΣC | 1..1 | Identifier | OSTJA ISIKUKOOD. Logical reference, when literal reference is not known |
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
system | Σ | 1..1 | uri | The namespace for the identifier value Fixed Value: https://fhir.ee/ValueSet/ee-patient-identity |
note | 0..1 | Annotation | Kommentaar väljastuse kohta. | |
text | Σ | 1..1 | markdown | The annotation - text content (as markdown) |
Documentation for this format |
Path | Conformance | ValueSet | URI |
MedicationDispense.extension:extensionTISDiscountRate.value[x] | preferred | https://fhir.ee/CodeSystem/retsepti-soodustuse-maarhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar | |
MedicationDispense.extension:extensionEETISBuyerEPC.value[x] | preferred | https://fhir.ee/ValueSet/ee-identity-systemhttps://fhir.ee/ValueSet/ee-identity-system | |
MedicationDispense.status | required | MedicationDispenseStatusCodeshttp://hl7.org/fhir/ValueSet/medicationdispense-status|5.0.0 from the FHIR Standard | |
MedicationDispense.medication | example | SNOMEDCTMedicationCodeshttp://hl7.org/fhir/ValueSet/medication-codes from the FHIR Standard | |
MedicationDispense.receiver.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use|5.0.0 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | error | MedicationDispense | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management : text.`div`.exists() | |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared : whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared |
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
MedicationDispense | C | 0..* | MedicationDispense | Ravimi väljamüük patsiendile. mdd-1: whenHandedOver cannot be before whenPrepared | ||||
id | Σ | 0..1 | id | Logical id of this artifact | ||||
meta | Σ | 0..1 | Meta | Metadata about the resource | ||||
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
language | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
text | 0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
extensionTISDiscountRate | 0..* | (Complex) | 0 | 50 | 75 | 90 | 100 URL: https://fhir.ee/StructureDefinition/ee-tis-discount-rate | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-discount-rate" | |||||
value[x] | 0..1 | CodeableConcept | SOODUSMÄÄR. LOEND. Value of extension Binding: https://fhir.ee/CodeSystem/retsepti-soodustuse-maar (preferred): Discount rate | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
coding | Σ | 0..* | Coding | LOEND. Code defined by a terminology system Binding: https://fhir.ee/CodeSystem/retsepti-soodustuse-maar (preferred): Soodustuse määr retseptikeskusest | ||||
text | Σ | 0..1 | string | Plain text representation of the concept | ||||
extensionEETISBuyerEPC | 0..* | (Complex) | Ostja. Keegi teine kui see, kellele ravim välja kirjutati. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-buyer-epc" | |||||
value[x] | 1..1 | OSTJA ISIKUKOOD Binding: https://fhir.ee/ValueSet/ee-identity-system (preferred): Identity System | ||||||
valueString | string | |||||||
valueIdentifier | Identifier | |||||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
status | ?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: MedicationDispenseStatusCodes (required): Describes the lifecycle of the dispense. | ||||
medication | Σ | 1..1 | CodeableReference(EETISMedicationEPC) {r} | Väljastatud ravim Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed. | ||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
reference | Σ | 0..1 | Reference(EETISMedicationEPC) {r} | Reference to a resource (by instance) | ||||
subject | Σ | 1..1 | Reference(EEBasePatient) {r} | Patsient, kellele ravim väljastatakse | ||||
performer | 1..1 | BackboneElement | Väljastuse teostaja | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
actor | 1..1 | Reference(EETISPractitionerRole) | Proviisor või farmatseut, kellel on õigus väljastada ravimit | |||||
location | 0..1 | Reference(EETISPharmacyLocation) | Apteegi tegevuskoha kood | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
identifier | ΣC | 0..1 | Identifier | APTEEGI TEGEVUSKOHA KOOD. Logical reference, when literal reference is not known | ||||
display | ΣC | 0..1 | string | Text alternative for the resource | ||||
authorizingPrescription | 1..* | Reference(EETISMedicationRequest) | Retsept, mille alusel ravim väljastati patsiendile. | |||||
quantity | 1..1 | SimpleQuantity | Väljastatud ravimi kogus | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
value | Σ | 0..1 | decimal | Numerical value (with implicit precision) | ||||
whenHandedOver | C | 1..1 | dateTime | Väljastamise aeg | ||||
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | KUI RAVIMI OSTAB VÄLJA KEEGI TEINE KUI SEE, KELLELE RAVIM ON VÄLJAKIRJUTATUD EI KASUTATA SEDA VAID ExtensionEETISBuyerEPC. Who collected the medication or where the medication was delivered | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
identifier | ΣC | 1..1 | Identifier | OSTJA ISIKUKOOD. Logical reference, when literal reference is not known | ||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | ||||
system | Σ | 1..1 | uri | The namespace for the identifier value Fixed Value: https://fhir.ee/ValueSet/ee-patient-identity | ||||
value | ΣC | 0..1 | string | The value that is unique Example General: 123456 | ||||
period | Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
display | ΣC | 0..1 | string | Text alternative for the resource | ||||
note | 0..1 | Annotation | Kommentaar väljastuse kohta. | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
time | Σ | 0..1 | dateTime | When the annotation was made | ||||
text | Σ | 1..1 | markdown | The annotation - text content (as markdown) | ||||
Documentation for this format |
Path | Conformance | ValueSet | URI |
MedicationDispense.language | required | AllLanguageshttp://hl7.org/fhir/ValueSet/all-languages|5.0.0 from the FHIR Standard | |
MedicationDispense.extension:extensionTISDiscountRate.value[x] | preferred | https://fhir.ee/CodeSystem/retsepti-soodustuse-maarhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar | |
MedicationDispense.extension:extensionTISDiscountRate.value[x].coding | preferred | https://fhir.ee/CodeSystem/retsepti-soodustuse-maarhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar | |
MedicationDispense.extension:extensionEETISBuyerEPC.value[x] | preferred | https://fhir.ee/ValueSet/ee-identity-systemhttps://fhir.ee/ValueSet/ee-identity-system | |
MedicationDispense.status | required | MedicationDispenseStatusCodeshttp://hl7.org/fhir/ValueSet/medicationdispense-status|5.0.0 from the FHIR Standard | |
MedicationDispense.medication | example | SNOMEDCTMedicationCodeshttp://hl7.org/fhir/ValueSet/medication-codes from the FHIR Standard | |
MedicationDispense.location.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-types from the FHIR Standard | |
MedicationDispense.receiver.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-types from the FHIR Standard | |
MedicationDispense.receiver.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use|5.0.0 from the FHIR Standard | |
MedicationDispense.receiver.identifier.type | extensible | IdentifierTypeCodeshttp://hl7.org/fhir/ValueSet/identifier-type from the FHIR Standard | |
MedicationDispense.dosageInstruction.doseAndRate.type | example | DoseAndRateTypehttp://terminology.hl7.org/ValueSet/dose-rate-type | |
MedicationDispense.substitution.type | example | ActSubstanceAdminSubstitutionCodehttp://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode | |
MedicationDispense.substitution.reason | example | SubstanceAdminSubstitutionReasonhttp://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason |
Id | Grade | Path(s) | Details | Requirements |
dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | error | MedicationDispense | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management : text.`div`.exists() | |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared : whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared |
This structure is derived from MedicationDispense
Summary
Mandatory: 4 elements(2 nested mandatory elements)
Fixed: 1 element
Prohibited: 37 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Differential View
This structure is derived from MedicationDispense
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
MedicationDispense | 0..* | MedicationDispense | Ravimi väljamüük patsiendile. | |
contained | 0..0 | |||
Slices for extension | Content/Rules for all slices | |||
extensionTISDiscountRate | 0..* | (Complex) | 0 | 50 | 75 | 90 | 100 URL: https://fhir.ee/StructureDefinition/ee-tis-discount-rate | |
value[x] | 0..1 | CodeableConcept | SOODUSMÄÄR. LOEND. Value of extension | |
extensionEETISBuyerEPC | 0..* | (Complex) | Ostja. Keegi teine kui see, kellele ravim välja kirjutati. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |
value[x] | 1..1 | string, Identifier | OSTJA ISIKUKOOD | |
identifier | 0..0 | |||
basedOn | 0..0 | |||
partOf | 0..0 | |||
notPerformedReason | 0..0 | |||
statusChanged | 0..0 | |||
category | 0..0 | |||
medication | 1..1 | CodeableReference(EETISMedicationEPC) {r} | Väljastatud ravim | |
concept | 0..0 | |||
reference | 0..1 | Reference(EETISMedicationEPC) {r} | Reference to a resource (by instance) | |
subject | 1..1 | Reference(EEBasePatient) {r} | Patsient, kellele ravim väljastatakse | |
encounter | 0..0 | |||
supportingInformation | 0..0 | |||
performer | 1..1 | BackboneElement | Väljastuse teostaja | |
function | 0..0 | |||
actor | 1..1 | Reference(EETISPractitionerRole) | Proviisor või farmatseut, kellel on õigus väljastada ravimit | |
location | 0..1 | Reference(EETISPharmacyLocation) | Apteegi tegevuskoha kood | |
identifier | 0..1 | Identifier | APTEEGI TEGEVUSKOHA KOOD. Logical reference, when literal reference is not known | |
authorizingPrescription | 1..* | Reference(EETISMedicationRequest) | Retsept, mille alusel ravim väljastati patsiendile. | |
type | 0..0 | |||
quantity | 1..1 | SimpleQuantity | Väljastatud ravimi kogus | |
unit | 0..0 | |||
system | 0..0 | |||
code | 0..0 | |||
daysSupply | 0..0 | |||
recorded | 0..0 | |||
whenPrepared | 0..0 | |||
whenHandedOver | 1..1 | dateTime | Väljastamise aeg | |
destination | 0..0 | |||
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | KUI RAVIMI OSTAB VÄLJA KEEGI TEINE KUI SEE, KELLELE RAVIM ON VÄLJAKIRJUTATUD EI KASUTATA SEDA VAID ExtensionEETISBuyerEPC. Who collected the medication or where the medication was delivered | |
identifier | 1..1 | Identifier | OSTJA ISIKUKOOD. Logical reference, when literal reference is not known | |
system | 1..1 | uri | The namespace for the identifier value Fixed Value: https://fhir.ee/ValueSet/ee-patient-identity | |
note | 0..1 | Annotation | Kommentaar väljastuse kohta. | |
author[x] | 0..0 | |||
renderedDosageInstruction | 0..0 | |||
dosageInstruction | 0..0 | |||
substitution | 0..0 | |||
eventHistory | 0..0 | |||
Documentation for this format |
Key Elements View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
MedicationDispense | C | 0..* | MedicationDispense | Ravimi väljamüük patsiendile. mdd-1: whenHandedOver cannot be before whenPrepared |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
Slices for extension | Content/Rules for all slices | |||
extensionTISDiscountRate | 0..* | (Complex) | 0 | 50 | 75 | 90 | 100 URL: https://fhir.ee/StructureDefinition/ee-tis-discount-rate | |
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-discount-rate" | |
value[x] | 0..1 | CodeableConcept | SOODUSMÄÄR. LOEND. Value of extension Binding: https://fhir.ee/CodeSystem/retsepti-soodustuse-maar (preferred): Discount rate | |
extensionEETISBuyerEPC | 0..* | (Complex) | Ostja. Keegi teine kui see, kellele ravim välja kirjutati. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-buyer-epc" | |
value[x] | 1..1 | OSTJA ISIKUKOOD Binding: https://fhir.ee/ValueSet/ee-identity-system (preferred): Identity System | ||
valueString | string | |||
valueIdentifier | Identifier | |||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
status | ?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: MedicationDispenseStatusCodes (required): Describes the lifecycle of the dispense. |
medication | Σ | 1..1 | CodeableReference(EETISMedicationEPC) {r} | Väljastatud ravim Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed. |
reference | Σ | 0..1 | Reference(EETISMedicationEPC) {r} | Reference to a resource (by instance) |
subject | Σ | 1..1 | Reference(EEBasePatient) {r} | Patsient, kellele ravim väljastatakse |
performer | 1..1 | BackboneElement | Väljastuse teostaja | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
actor | 1..1 | Reference(EETISPractitionerRole) | Proviisor või farmatseut, kellel on õigus väljastada ravimit | |
location | 0..1 | Reference(EETISPharmacyLocation) | Apteegi tegevuskoha kood | |
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL |
identifier | ΣC | 0..1 | Identifier | APTEEGI TEGEVUSKOHA KOOD. Logical reference, when literal reference is not known |
authorizingPrescription | 1..* | Reference(EETISMedicationRequest) | Retsept, mille alusel ravim väljastati patsiendile. | |
quantity | 1..1 | SimpleQuantity | Väljastatud ravimi kogus | |
whenHandedOver | C | 1..1 | dateTime | Väljastamise aeg |
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | KUI RAVIMI OSTAB VÄLJA KEEGI TEINE KUI SEE, KELLELE RAVIM ON VÄLJAKIRJUTATUD EI KASUTATA SEDA VAID ExtensionEETISBuyerEPC. Who collected the medication or where the medication was delivered | |
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL |
identifier | ΣC | 1..1 | Identifier | OSTJA ISIKUKOOD. Logical reference, when literal reference is not known |
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
system | Σ | 1..1 | uri | The namespace for the identifier value Fixed Value: https://fhir.ee/ValueSet/ee-patient-identity |
note | 0..1 | Annotation | Kommentaar väljastuse kohta. | |
text | Σ | 1..1 | markdown | The annotation - text content (as markdown) |
Documentation for this format |
Path | Conformance | ValueSet | URI |
MedicationDispense.extension:extensionTISDiscountRate.value[x] | preferred | https://fhir.ee/CodeSystem/retsepti-soodustuse-maarhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar | |
MedicationDispense.extension:extensionEETISBuyerEPC.value[x] | preferred | https://fhir.ee/ValueSet/ee-identity-systemhttps://fhir.ee/ValueSet/ee-identity-system | |
MedicationDispense.status | required | MedicationDispenseStatusCodeshttp://hl7.org/fhir/ValueSet/medicationdispense-status|5.0.0 from the FHIR Standard | |
MedicationDispense.medication | example | SNOMEDCTMedicationCodeshttp://hl7.org/fhir/ValueSet/medication-codes from the FHIR Standard | |
MedicationDispense.receiver.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use|5.0.0 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | error | MedicationDispense | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management : text.`div`.exists() | |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared : whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
MedicationDispense | C | 0..* | MedicationDispense | Ravimi väljamüük patsiendile. mdd-1: whenHandedOver cannot be before whenPrepared | ||||
id | Σ | 0..1 | id | Logical id of this artifact | ||||
meta | Σ | 0..1 | Meta | Metadata about the resource | ||||
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
language | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
text | 0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
extensionTISDiscountRate | 0..* | (Complex) | 0 | 50 | 75 | 90 | 100 URL: https://fhir.ee/StructureDefinition/ee-tis-discount-rate | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-discount-rate" | |||||
value[x] | 0..1 | CodeableConcept | SOODUSMÄÄR. LOEND. Value of extension Binding: https://fhir.ee/CodeSystem/retsepti-soodustuse-maar (preferred): Discount rate | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
coding | Σ | 0..* | Coding | LOEND. Code defined by a terminology system Binding: https://fhir.ee/CodeSystem/retsepti-soodustuse-maar (preferred): Soodustuse määr retseptikeskusest | ||||
text | Σ | 0..1 | string | Plain text representation of the concept | ||||
extensionEETISBuyerEPC | 0..* | (Complex) | Ostja. Keegi teine kui see, kellele ravim välja kirjutati. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-buyer-epc" | |||||
value[x] | 1..1 | OSTJA ISIKUKOOD Binding: https://fhir.ee/ValueSet/ee-identity-system (preferred): Identity System | ||||||
valueString | string | |||||||
valueIdentifier | Identifier | |||||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
status | ?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: MedicationDispenseStatusCodes (required): Describes the lifecycle of the dispense. | ||||
medication | Σ | 1..1 | CodeableReference(EETISMedicationEPC) {r} | Väljastatud ravim Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed. | ||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
reference | Σ | 0..1 | Reference(EETISMedicationEPC) {r} | Reference to a resource (by instance) | ||||
subject | Σ | 1..1 | Reference(EEBasePatient) {r} | Patsient, kellele ravim väljastatakse | ||||
performer | 1..1 | BackboneElement | Väljastuse teostaja | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
actor | 1..1 | Reference(EETISPractitionerRole) | Proviisor või farmatseut, kellel on õigus väljastada ravimit | |||||
location | 0..1 | Reference(EETISPharmacyLocation) | Apteegi tegevuskoha kood | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
identifier | ΣC | 0..1 | Identifier | APTEEGI TEGEVUSKOHA KOOD. Logical reference, when literal reference is not known | ||||
display | ΣC | 0..1 | string | Text alternative for the resource | ||||
authorizingPrescription | 1..* | Reference(EETISMedicationRequest) | Retsept, mille alusel ravim väljastati patsiendile. | |||||
quantity | 1..1 | SimpleQuantity | Väljastatud ravimi kogus | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
value | Σ | 0..1 | decimal | Numerical value (with implicit precision) | ||||
whenHandedOver | C | 1..1 | dateTime | Väljastamise aeg | ||||
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | KUI RAVIMI OSTAB VÄLJA KEEGI TEINE KUI SEE, KELLELE RAVIM ON VÄLJAKIRJUTATUD EI KASUTATA SEDA VAID ExtensionEETISBuyerEPC. Who collected the medication or where the medication was delivered | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
identifier | ΣC | 1..1 | Identifier | OSTJA ISIKUKOOD. Logical reference, when literal reference is not known | ||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | ||||
system | Σ | 1..1 | uri | The namespace for the identifier value Fixed Value: https://fhir.ee/ValueSet/ee-patient-identity | ||||
value | ΣC | 0..1 | string | The value that is unique Example General: 123456 | ||||
period | Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
display | ΣC | 0..1 | string | Text alternative for the resource | ||||
note | 0..1 | Annotation | Kommentaar väljastuse kohta. | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
time | Σ | 0..1 | dateTime | When the annotation was made | ||||
text | Σ | 1..1 | markdown | The annotation - text content (as markdown) | ||||
Documentation for this format |
Path | Conformance | ValueSet | URI |
MedicationDispense.language | required | AllLanguageshttp://hl7.org/fhir/ValueSet/all-languages|5.0.0 from the FHIR Standard | |
MedicationDispense.extension:extensionTISDiscountRate.value[x] | preferred | https://fhir.ee/CodeSystem/retsepti-soodustuse-maarhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar | |
MedicationDispense.extension:extensionTISDiscountRate.value[x].coding | preferred | https://fhir.ee/CodeSystem/retsepti-soodustuse-maarhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar | |
MedicationDispense.extension:extensionEETISBuyerEPC.value[x] | preferred | https://fhir.ee/ValueSet/ee-identity-systemhttps://fhir.ee/ValueSet/ee-identity-system | |
MedicationDispense.status | required | MedicationDispenseStatusCodeshttp://hl7.org/fhir/ValueSet/medicationdispense-status|5.0.0 from the FHIR Standard | |
MedicationDispense.medication | example | SNOMEDCTMedicationCodeshttp://hl7.org/fhir/ValueSet/medication-codes from the FHIR Standard | |
MedicationDispense.location.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-types from the FHIR Standard | |
MedicationDispense.receiver.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-types from the FHIR Standard | |
MedicationDispense.receiver.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use|5.0.0 from the FHIR Standard | |
MedicationDispense.receiver.identifier.type | extensible | IdentifierTypeCodeshttp://hl7.org/fhir/ValueSet/identifier-type from the FHIR Standard | |
MedicationDispense.dosageInstruction.doseAndRate.type | example | DoseAndRateTypehttp://terminology.hl7.org/ValueSet/dose-rate-type | |
MedicationDispense.substitution.type | example | ActSubstanceAdminSubstitutionCodehttp://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode | |
MedicationDispense.substitution.reason | example | SubstanceAdminSubstitutionReasonhttp://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason |
Id | Grade | Path(s) | Details | Requirements |
dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | error | MedicationDispense | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management : text.`div`.exists() | |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared : whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared |
This structure is derived from MedicationDispense
Summary
Mandatory: 4 elements(2 nested mandatory elements)
Fixed: 1 element
Prohibited: 37 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Other representations of profile: CSV, Excel, Schematron