UPTIS FHIR PoC Test Implementation Guide
1.0.0 - draft Estonia flag

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

Resource Profile: EETISMedicationDispense

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:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from MedicationDispense

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. 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
... 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)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
MedicationDispense.extension:extensionTISDiscountRate.value[x]preferredhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar
https://fhir.ee/CodeSystem/retsepti-soodustuse-maar
MedicationDispense.extension:extensionEETISBuyerEPC.value[x]preferredhttps://fhir.ee/ValueSet/ee-identity-system
https://fhir.ee/ValueSet/ee-identity-system
MedicationDispense.statusrequiredMedicationDispenseStatusCodes
http://hl7.org/fhir/ValueSet/medicationdispense-status|5.0.0
from the FHIR Standard
MedicationDispense.medicationexampleSNOMEDCTMedicationCodes
http://hl7.org/fhir/ValueSet/medication-codes
from the FHIR Standard
MedicationDispense.receiver.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationDispenseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationDispenseIf 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-4errorMedicationDispenseIf 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-5errorMedicationDispenseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationDispenseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
mdd-1errorMedicationDispensewhenHandedOver cannot be before whenPrepared
: whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
NameFlagsCard.TypeDescription & Constraintsdoco
.. 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
... 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)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
MedicationDispense.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
MedicationDispense.extension:extensionTISDiscountRate.value[x]preferredhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar
https://fhir.ee/CodeSystem/retsepti-soodustuse-maar
MedicationDispense.extension:extensionTISDiscountRate.value[x].codingpreferredhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar
https://fhir.ee/CodeSystem/retsepti-soodustuse-maar
MedicationDispense.extension:extensionEETISBuyerEPC.value[x]preferredhttps://fhir.ee/ValueSet/ee-identity-system
https://fhir.ee/ValueSet/ee-identity-system
MedicationDispense.statusrequiredMedicationDispenseStatusCodes
http://hl7.org/fhir/ValueSet/medicationdispense-status|5.0.0
from the FHIR Standard
MedicationDispense.medicationexampleSNOMEDCTMedicationCodes
http://hl7.org/fhir/ValueSet/medication-codes
from the FHIR Standard
MedicationDispense.location.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
MedicationDispense.receiver.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
MedicationDispense.receiver.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
from the FHIR Standard
MedicationDispense.receiver.identifier.typeextensibleIdentifierTypeCodes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
MedicationDispense.dosageInstruction.doseAndRate.typeexampleDoseAndRateType
http://terminology.hl7.org/ValueSet/dose-rate-type
MedicationDispense.substitution.typeexampleActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationDispense.substitution.reasonexampleSubstanceAdminSubstitutionReason
http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationDispenseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationDispenseIf 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-4errorMedicationDispenseIf 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-5errorMedicationDispenseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationDispenseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
mdd-1errorMedicationDispensewhenHandedOver cannot be before whenPrepared
: whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared

Differential View

This structure is derived from MedicationDispense

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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

doco Documentation for this format

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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
... 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)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
MedicationDispense.extension:extensionTISDiscountRate.value[x]preferredhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar
https://fhir.ee/CodeSystem/retsepti-soodustuse-maar
MedicationDispense.extension:extensionEETISBuyerEPC.value[x]preferredhttps://fhir.ee/ValueSet/ee-identity-system
https://fhir.ee/ValueSet/ee-identity-system
MedicationDispense.statusrequiredMedicationDispenseStatusCodes
http://hl7.org/fhir/ValueSet/medicationdispense-status|5.0.0
from the FHIR Standard
MedicationDispense.medicationexampleSNOMEDCTMedicationCodes
http://hl7.org/fhir/ValueSet/medication-codes
from the FHIR Standard
MedicationDispense.receiver.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationDispenseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationDispenseIf 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-4errorMedicationDispenseIf 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-5errorMedicationDispenseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationDispenseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
mdd-1errorMedicationDispensewhenHandedOver cannot be before whenPrepared
: whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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
... 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)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
MedicationDispense.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
MedicationDispense.extension:extensionTISDiscountRate.value[x]preferredhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar
https://fhir.ee/CodeSystem/retsepti-soodustuse-maar
MedicationDispense.extension:extensionTISDiscountRate.value[x].codingpreferredhttps://fhir.ee/CodeSystem/retsepti-soodustuse-maar
https://fhir.ee/CodeSystem/retsepti-soodustuse-maar
MedicationDispense.extension:extensionEETISBuyerEPC.value[x]preferredhttps://fhir.ee/ValueSet/ee-identity-system
https://fhir.ee/ValueSet/ee-identity-system
MedicationDispense.statusrequiredMedicationDispenseStatusCodes
http://hl7.org/fhir/ValueSet/medicationdispense-status|5.0.0
from the FHIR Standard
MedicationDispense.medicationexampleSNOMEDCTMedicationCodes
http://hl7.org/fhir/ValueSet/medication-codes
from the FHIR Standard
MedicationDispense.location.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
MedicationDispense.receiver.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
MedicationDispense.receiver.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
from the FHIR Standard
MedicationDispense.receiver.identifier.typeextensibleIdentifierTypeCodes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
MedicationDispense.dosageInstruction.doseAndRate.typeexampleDoseAndRateType
http://terminology.hl7.org/ValueSet/dose-rate-type
MedicationDispense.substitution.typeexampleActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationDispense.substitution.reasonexampleSubstanceAdminSubstitutionReason
http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationDispenseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationDispenseIf 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-4errorMedicationDispenseIf 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-5errorMedicationDispenseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationDispenseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
mdd-1errorMedicationDispensewhenHandedOver cannot be before whenPrepared
: whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared

 

Other representations of profile: CSV, Excel, Schematron