Medication Scheme Implementation Guide
1.0.0 - draft
Medication Scheme 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/ig-ee-medication-scheme/ and changes regularly. See the Directory of published versions
Official URL: https://fhir.ee/StructureDefinition/ee-tis-prescription-dispense | Version: 1.0.0 | |||
Draft as of 2024-01-31 | Computable Name: EETISPrescriptionDispense |
Ravimi väljastamine. 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 | Dispensation of prescribed medication to the patient | |
contained | 0..0 | |||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
extensionEETISBuyerEPC | 0..* | (Complex) | Identity code of the buyer of medicine when the buyer is someone else than the subject of prescription. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |
value[x] | 1..1 | string, Identifier | Personal identification code of the buyer | |
extensionEETISReimbursementRate | 0..* | (Complex) | Reimbursement rate and reason of prescription medicine. URL: https://fhir.ee/StructureDefinition/ee-tis-reimbursement-rate | |
identifier | 0..0 | |||
basedOn | 0..0 | |||
partOf | 0..0 | |||
status | 1..1 | code | When dispensation occurres it is always completed. Fixed Value: completed | |
notPerformedReason | 0..0 | |||
statusChanged | 0..0 | |||
category | 0..0 | |||
medication | 1..1 | CodeableReference(EETISMedicationDispensedToPatient | EETISMedicationExtemporal) | Dispensed medication | |
subject | 1..1 | Reference(EE MPI Patient Verified) | Patient recieving the medication | |
encounter | 0..0 | |||
supportingInformation | 0..0 | |||
performer | 1..1 | BackboneElement | Indicates who or what performed the event. | |
function | 0..0 | |||
actor | 1..1 | Reference(EETISPractitionerRole) | Pharmacist or assistant pharmacist who has the rights to dispense meditcation. | |
location | 0..1 | Reference(EETISPharmacyLocation) | The principal physical location where the dispense was performed. | |
identifier | 0..1 | Identifier | Logical reference, when literal reference is not known | |
authorizingPrescription | 1..* | Reference(EETISPrescription) | Retsept, mille alusel ravim väljastati patsiendile. | |
type | 0..0 | |||
quantity | 1..1 | SimpleQuantity | The amount of medication that has been dispensed. Includes unit of measure. | |
unit | 0..0 | |||
system | 0..0 | |||
code | 0..0 | |||
daysSupply | 0..1 | SimpleQuantity | Dispensed medication calculated in days. How many days is covered with this amount of medication. | |
recorded | 0..0 | |||
whenPrepared | 0..0 | |||
whenHandedOver | 1..1 | dateTime | The time the dispensed product was provided to the patient or their representative. | |
destination | 0..0 | |||
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | Who collected the medication or where the medication was delivered | |
identifier | ||||
value | 1..1 | string | Buyers personal identification code. Logical reference, when literal reference is not known | |
note | 0..1 | Annotation | Extra information about the dispense that could not be conveyed in the other attributes. | |
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 | Dispensation of prescribed medication to the patient mdd-1: whenHandedOver cannot be before whenPrepared |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
extensionEETISBuyerEPC | 0..* | (Complex) | Identity code of the buyer of medicine when the buyer is someone else than the subject of prescription. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |
extension | 0..0 | |||
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-buyer-epc" | |
value[x] | 1..1 | Personal identification code of the buyer | ||
valueString | string | |||
valueIdentifier | Identifier | |||
extensionEETISReimbursementRate | 0..* | (Complex) | Reimbursement rate and reason of prescription medicine. URL: https://fhir.ee/StructureDefinition/ee-tis-reimbursement-rate | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
status | ?!Σ | 1..1 | code | When dispensation occurres it is always completed. Binding: MedicationDispenseStatusCodes (required): Describes the lifecycle of the dispense. Fixed Value: completed |
medication | Σ | 1..1 | CodeableReference(EETISMedicationDispensedToPatient | EETISMedicationExtemporal) | Dispensed medication Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed. |
subject | Σ | 1..1 | Reference(EE MPI Patient Verified) | Patient recieving the medication |
performer | 1..1 | BackboneElement | Indicates who or what performed the event. | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
actor | 1..1 | Reference(EETISPractitionerRole) | Pharmacist or assistant pharmacist who has the rights to dispense meditcation. | |
location | 0..1 | Reference(EETISPharmacyLocation) | The principal physical location where the dispense was performed. | |
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL |
identifier | ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known |
authorizingPrescription | 1..* | Reference(EETISPrescription) | Retsept, mille alusel ravim väljastati patsiendile. | |
quantity | 1..1 | SimpleQuantity | The amount of medication that has been dispensed. Includes unit of measure. | |
daysSupply | 0..1 | SimpleQuantity | Dispensed medication calculated in days. How many days is covered with this amount of medication. | |
whenHandedOver | C | 1..1 | dateTime | The time the dispensed product was provided to the patient or their representative. |
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | Who collected the medication or where the medication was delivered | |
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL |
note | 0..1 | Annotation | Extra information about the dispense that could not be conveyed in the other attributes. | |
text | Σ | 1..1 | markdown | The annotation - text content (as markdown) |
Documentation for this format |
Path | Conformance | ValueSet / Code | URI |
MedicationDispense.status | required | Fixed Value: completedhttp://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 |
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 | Dispensation of prescribed medication to the patient 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 | |||||
extensionEETISBuyerEPC | 0..* | (Complex) | Identity code of the buyer of medicine when the buyer is someone else than the subject of prescription. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..0 | |||||||
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-buyer-epc" | |||||
value[x] | 1..1 | Personal identification code of the buyer | ||||||
valueString | string | |||||||
valueIdentifier | Identifier | |||||||
extensionEETISReimbursementRate | 0..* | (Complex) | Reimbursement rate and reason of prescription medicine. URL: https://fhir.ee/StructureDefinition/ee-tis-reimbursement-rate | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
status | ?!Σ | 1..1 | code | When dispensation occurres it is always completed. Binding: MedicationDispenseStatusCodes (required): Describes the lifecycle of the dispense. Fixed Value: completed | ||||
medication | Σ | 1..1 | CodeableReference(EETISMedicationDispensedToPatient | EETISMedicationExtemporal) | Dispensed medication Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed. | ||||
subject | Σ | 1..1 | Reference(EE MPI Patient Verified) | Patient recieving the medication | ||||
performer | 1..1 | BackboneElement | Indicates who or what performed the event. | |||||
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) | Pharmacist or assistant pharmacist who has the rights to dispense meditcation. | |||||
location | 0..1 | Reference(EETISPharmacyLocation) | The principal physical location where the dispense was performed. | |||||
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 | Logical reference, when literal reference is not known | ||||
display | ΣC | 0..1 | string | Text alternative for the resource | ||||
authorizingPrescription | 1..* | Reference(EETISPrescription) | Retsept, mille alusel ravim väljastati patsiendile. | |||||
quantity | 1..1 | SimpleQuantity | The amount of medication that has been dispensed. Includes unit of measure. | |||||
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) | ||||
daysSupply | 0..1 | SimpleQuantity | Dispensed medication calculated in days. How many days is covered with this amount of medication. | |||||
whenHandedOver | C | 1..1 | dateTime | The time the dispensed product was provided to the patient or their representative. | ||||
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | 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 | 0..1 | Identifier | 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 | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
value | ΣC | 1..1 | string | Buyers personal identification code. Logical reference, when literal reference is not known 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 | Extra information about the dispense that could not be conveyed in the other attributes. | |||||
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 / Code | URI |
MedicationDispense.language | required | AllLanguageshttp://hl7.org/fhir/ValueSet/all-languages|5.0.0 from the FHIR Standard | |
MedicationDispense.status | required | Fixed Value: completedhttp://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(1 nested mandatory element)
Fixed: 1 element
Prohibited: 35 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 | Dispensation of prescribed medication to the patient | |
contained | 0..0 | |||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
extensionEETISBuyerEPC | 0..* | (Complex) | Identity code of the buyer of medicine when the buyer is someone else than the subject of prescription. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |
value[x] | 1..1 | string, Identifier | Personal identification code of the buyer | |
extensionEETISReimbursementRate | 0..* | (Complex) | Reimbursement rate and reason of prescription medicine. URL: https://fhir.ee/StructureDefinition/ee-tis-reimbursement-rate | |
identifier | 0..0 | |||
basedOn | 0..0 | |||
partOf | 0..0 | |||
status | 1..1 | code | When dispensation occurres it is always completed. Fixed Value: completed | |
notPerformedReason | 0..0 | |||
statusChanged | 0..0 | |||
category | 0..0 | |||
medication | 1..1 | CodeableReference(EETISMedicationDispensedToPatient | EETISMedicationExtemporal) | Dispensed medication | |
subject | 1..1 | Reference(EE MPI Patient Verified) | Patient recieving the medication | |
encounter | 0..0 | |||
supportingInformation | 0..0 | |||
performer | 1..1 | BackboneElement | Indicates who or what performed the event. | |
function | 0..0 | |||
actor | 1..1 | Reference(EETISPractitionerRole) | Pharmacist or assistant pharmacist who has the rights to dispense meditcation. | |
location | 0..1 | Reference(EETISPharmacyLocation) | The principal physical location where the dispense was performed. | |
identifier | 0..1 | Identifier | Logical reference, when literal reference is not known | |
authorizingPrescription | 1..* | Reference(EETISPrescription) | Retsept, mille alusel ravim väljastati patsiendile. | |
type | 0..0 | |||
quantity | 1..1 | SimpleQuantity | The amount of medication that has been dispensed. Includes unit of measure. | |
unit | 0..0 | |||
system | 0..0 | |||
code | 0..0 | |||
daysSupply | 0..1 | SimpleQuantity | Dispensed medication calculated in days. How many days is covered with this amount of medication. | |
recorded | 0..0 | |||
whenPrepared | 0..0 | |||
whenHandedOver | 1..1 | dateTime | The time the dispensed product was provided to the patient or their representative. | |
destination | 0..0 | |||
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | Who collected the medication or where the medication was delivered | |
identifier | ||||
value | 1..1 | string | Buyers personal identification code. Logical reference, when literal reference is not known | |
note | 0..1 | Annotation | Extra information about the dispense that could not be conveyed in the other attributes. | |
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 | Dispensation of prescribed medication to the patient mdd-1: whenHandedOver cannot be before whenPrepared |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
extensionEETISBuyerEPC | 0..* | (Complex) | Identity code of the buyer of medicine when the buyer is someone else than the subject of prescription. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |
extension | 0..0 | |||
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-buyer-epc" | |
value[x] | 1..1 | Personal identification code of the buyer | ||
valueString | string | |||
valueIdentifier | Identifier | |||
extensionEETISReimbursementRate | 0..* | (Complex) | Reimbursement rate and reason of prescription medicine. URL: https://fhir.ee/StructureDefinition/ee-tis-reimbursement-rate | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
status | ?!Σ | 1..1 | code | When dispensation occurres it is always completed. Binding: MedicationDispenseStatusCodes (required): Describes the lifecycle of the dispense. Fixed Value: completed |
medication | Σ | 1..1 | CodeableReference(EETISMedicationDispensedToPatient | EETISMedicationExtemporal) | Dispensed medication Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed. |
subject | Σ | 1..1 | Reference(EE MPI Patient Verified) | Patient recieving the medication |
performer | 1..1 | BackboneElement | Indicates who or what performed the event. | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
actor | 1..1 | Reference(EETISPractitionerRole) | Pharmacist or assistant pharmacist who has the rights to dispense meditcation. | |
location | 0..1 | Reference(EETISPharmacyLocation) | The principal physical location where the dispense was performed. | |
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL |
identifier | ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known |
authorizingPrescription | 1..* | Reference(EETISPrescription) | Retsept, mille alusel ravim väljastati patsiendile. | |
quantity | 1..1 | SimpleQuantity | The amount of medication that has been dispensed. Includes unit of measure. | |
daysSupply | 0..1 | SimpleQuantity | Dispensed medication calculated in days. How many days is covered with this amount of medication. | |
whenHandedOver | C | 1..1 | dateTime | The time the dispensed product was provided to the patient or their representative. |
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | Who collected the medication or where the medication was delivered | |
reference | ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL |
note | 0..1 | Annotation | Extra information about the dispense that could not be conveyed in the other attributes. | |
text | Σ | 1..1 | markdown | The annotation - text content (as markdown) |
Documentation for this format |
Path | Conformance | ValueSet / Code | URI |
MedicationDispense.status | required | Fixed Value: completedhttp://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 |
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 | Dispensation of prescribed medication to the patient 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 | |||||
extensionEETISBuyerEPC | 0..* | (Complex) | Identity code of the buyer of medicine when the buyer is someone else than the subject of prescription. URL: https://fhir.ee/StructureDefinition/ee-tis-buyer-epc | |||||
id | 0..1 | id | Unique id for inter-element referencing | |||||
extension | 0..0 | |||||||
url | 1..1 | uri | "https://fhir.ee/StructureDefinition/ee-tis-buyer-epc" | |||||
value[x] | 1..1 | Personal identification code of the buyer | ||||||
valueString | string | |||||||
valueIdentifier | Identifier | |||||||
extensionEETISReimbursementRate | 0..* | (Complex) | Reimbursement rate and reason of prescription medicine. URL: https://fhir.ee/StructureDefinition/ee-tis-reimbursement-rate | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
status | ?!Σ | 1..1 | code | When dispensation occurres it is always completed. Binding: MedicationDispenseStatusCodes (required): Describes the lifecycle of the dispense. Fixed Value: completed | ||||
medication | Σ | 1..1 | CodeableReference(EETISMedicationDispensedToPatient | EETISMedicationExtemporal) | Dispensed medication Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed. | ||||
subject | Σ | 1..1 | Reference(EE MPI Patient Verified) | Patient recieving the medication | ||||
performer | 1..1 | BackboneElement | Indicates who or what performed the event. | |||||
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) | Pharmacist or assistant pharmacist who has the rights to dispense meditcation. | |||||
location | 0..1 | Reference(EETISPharmacyLocation) | The principal physical location where the dispense was performed. | |||||
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 | Logical reference, when literal reference is not known | ||||
display | ΣC | 0..1 | string | Text alternative for the resource | ||||
authorizingPrescription | 1..* | Reference(EETISPrescription) | Retsept, mille alusel ravim väljastati patsiendile. | |||||
quantity | 1..1 | SimpleQuantity | The amount of medication that has been dispensed. Includes unit of measure. | |||||
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) | ||||
daysSupply | 0..1 | SimpleQuantity | Dispensed medication calculated in days. How many days is covered with this amount of medication. | |||||
whenHandedOver | C | 1..1 | dateTime | The time the dispensed product was provided to the patient or their representative. | ||||
receiver | 0..1 | Reference(Patient | Practitioner | RelatedPerson | Location | PractitionerRole) | 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 | 0..1 | Identifier | 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 | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
value | ΣC | 1..1 | string | Buyers personal identification code. Logical reference, when literal reference is not known 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 | Extra information about the dispense that could not be conveyed in the other attributes. | |||||
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 / Code | URI |
MedicationDispense.language | required | AllLanguageshttp://hl7.org/fhir/ValueSet/all-languages|5.0.0 from the FHIR Standard | |
MedicationDispense.status | required | Fixed Value: completedhttp://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(1 nested mandatory element)
Fixed: 1 element
Prohibited: 35 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Other representations of profile: CSV, Excel, Schematron