Extensions for Using Data Elements from FHIR STU3 in FHIR R4B - Downloaded Version null See the Directory of published versions
| Official URL: http://hl7.org/fhir/3.0/StructureDefinition/profile-Medication | Version: 0.1.0 | |||
| Standards status: Trial-use | Maturity Level: 0 | Computable Name: Profile_R3_Medication_R4B | ||
This cross-version profile allows STU3 Medication content to be represented via FHIR R4B Medication resources.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Medication(4.3.0) | Definition of a Medication | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() |
?! | 0..1 | code | STU3: active | inactive | entered-in-error (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-status Binding: PublicationStatus (required): The lifecycle status of an artifact. Constraints: ext-1 |
![]() ![]() ![]() |
0..1 | boolean | STU3: True if a brand (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isBrand Constraints: ext-1 | |
![]() ![]() ![]() |
0..1 | boolean | STU3: True if medication does not require a prescription (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isOverTheCounter Constraints: ext-1 | |
![]() ![]() ![]() |
0..1 | (Complex) | STU3: Details about packaged medications (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package Constraints: ext-1 | |
![]() ![]() ![]() |
0..* | Attachment | STU3: Picture of the medication (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.image Constraints: ext-1 | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 |
![]() ![]() |
?!Σ | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Medication.status | Base | required | Medication Status Codes | 📍4.3.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Medication | 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.exists() and ('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url)))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(uri) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Medication | 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 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Medication | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | Medication.implicitRules, Medication.extension, Medication.extension:status, Medication.extension:isBrand, Medication.extension:isOverTheCounter, Medication.extension:package, Medication.extension:image, Medication.modifierExtension, Medication.status | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | Medication.extension, Medication.extension:status, Medication.extension:isBrand, Medication.extension:isOverTheCounter, Medication.extension:package, Medication.extension:image, Medication.modifierExtension | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from Medication
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Medication(4.3.0) | Definition of a Medication | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: meta additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.meta Constraints: ext-1 | |||||
![]() ![]() ![]() |
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example) | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): IETF language tag
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: text additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.text Constraints: ext-1 | |||||
![]() ![]() ![]() |
1..1 | code | generated | extensions | additional | empty Binding: NarrativeStatus (required) | |||||
![]() ![]() ![]() |
C | 1..1 | xhtml | Limited xhtml content Constraints: txt-1, txt-2 | ||||
![]() ![]() |
0..* | Resource | Contained, inline Resources Constraints: dom-r4b | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() |
?! | 0..1 | code | STU3: active | inactive | entered-in-error (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-status Binding: PublicationStatus (required): The lifecycle status of an artifact. Constraints: ext-1 | ||||
![]() ![]() ![]() |
0..1 | boolean | STU3: True if a brand (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isBrand Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | boolean | STU3: True if medication does not require a prescription (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isOverTheCounter Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | (Complex) | STU3: Details about packaged medications (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..* | Attachment | STU3: Picture of the medication (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.image Constraints: ext-1 | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 | ||||
![]() ![]() |
Σ | 0..* | Identifier | Business identifier for this medication | ||||
![]() ![]() |
Σ | 0..1 | CodeableConcept | Codes that identify this medication Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication. | ||||
![]() ![]() |
?!Σ | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use. | ||||
![]() ![]() |
Σ | 0..1 | Reference(Organization) | Manufacturer of the item | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: manufacturer additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
0..1 | CodeableConcept | powder | tablets | capsule + Binding: SNOMEDCTFormCodes (example): A coded concept defining the form of a medication. | |||||
![]() ![]() |
Σ | 0..1 | Ratio | Amount of drug in package | ||||
![]() ![]() |
0..* | BackboneElement | Active or inactive ingredient | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
1..1 | The actual ingredient or content | ||||||
![]() ![]() ![]() ![]() |
Content/Rules for all Types | |||||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: The product contained URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() |
Reference(Substance | Medication) | |||||||
![]() ![]() ![]() |
0..1 | boolean | Active ingredient indicator | |||||
![]() ![]() ![]() |
0..1 | Ratio | Quantity of ingredient present | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | Ratio | STU3: amount additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.ingredient.amount Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Quantity | Numerator value | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Quantity | Denominator value | ||||
![]() ![]() |
0..1 | BackboneElement | Details about packaged medications | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
0..1 | string | Identifier assigned to batch | |||||
![]() ![]() ![]() |
0..1 | dateTime | When batch will expire | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Medication.meta.security | Base | extensible | SecurityLabels | 📍4.3.0 | FHIR Std. |
| Medication.meta.tag | Base | example | Common Tags | 📍4.3.0 | FHIR Std. |
| Medication.language | Base | preferred | Common Languages | 📍4.3.0 | FHIR Std. |
| Medication.text.status | Base | required | NarrativeStatus | 📍4.3.0 | FHIR Std. |
| Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.3.0 | FHIR Std. |
| Medication.status | Base | required | Medication Status Codes | 📍4.3.0 | FHIR Std. |
| Medication.manufacturer.type | Base | extensible | ResourceType | 📍4.3.0 | FHIR Std. |
| Medication.form | Base | example | SNOMED CT Form Codes | 📍4.3.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Medication | 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.exists() and ('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url)))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(uri) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Medication | 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 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Medication | A resource should have narrative for robust management |
text.`div`.exists()
|
| dom-r4b | warning | Medication.contained | Containing new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems |
($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)
|
| ele-1 | error | Medication.meta, Medication.meta.extension, Medication.meta.extension:meta, Medication.meta.versionId, Medication.meta.lastUpdated, Medication.meta.source, Medication.meta.profile, Medication.meta.security, Medication.meta.tag, Medication.implicitRules, Medication.language, Medication.text, Medication.text.extension, Medication.text.extension:text, Medication.text.status, Medication.text.div, Medication.extension, Medication.extension:status, Medication.extension:isBrand, Medication.extension:isOverTheCounter, Medication.extension:package, Medication.extension:image, Medication.modifierExtension, Medication.identifier, Medication.code, Medication.status, Medication.manufacturer, Medication.manufacturer.extension, Medication.manufacturer.extension:manufacturer, Medication.manufacturer.reference, Medication.manufacturer.type, Medication.manufacturer.identifier, Medication.manufacturer.display, Medication.form, Medication.amount, Medication.ingredient, Medication.ingredient.extension, Medication.ingredient.modifierExtension, Medication.ingredient.item[x], Medication.ingredient.item[x].extension, Medication.ingredient.item[x].extension:alternateReference, Medication.ingredient.isActive, Medication.ingredient.strength, Medication.ingredient.strength.extension, Medication.ingredient.strength.extension:amount, Medication.ingredient.strength.numerator, Medication.ingredient.strength.denominator, Medication.batch, Medication.batch.extension, Medication.batch.modifierExtension, Medication.batch.lotNumber, Medication.batch.expirationDate | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | Medication.meta.extension, Medication.meta.extension:meta, Medication.text.extension, Medication.text.extension:text, Medication.extension, Medication.extension:status, Medication.extension:isBrand, Medication.extension:isOverTheCounter, Medication.extension:package, Medication.extension:image, Medication.modifierExtension, Medication.manufacturer.extension, Medication.manufacturer.extension:manufacturer, Medication.ingredient.extension, Medication.ingredient.modifierExtension, Medication.ingredient.item[x].extension, Medication.ingredient.item[x].extension:alternateReference, Medication.ingredient.strength.extension, Medication.ingredient.strength.extension:amount, Medication.batch.extension, Medication.batch.modifierExtension | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| txt-1 | error | Medication.text.div | The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes |
htmlChecks()
|
| txt-2 | error | Medication.text.div | The narrative SHALL have some non-whitespace content |
htmlChecks()
|
This structure is derived from Medication
Summary
Extensions
This structure refers to these extensions:
Maturity: 0
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Medication(4.3.0) | Definition of a Medication | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() |
?! | 0..1 | code | STU3: active | inactive | entered-in-error (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-status Binding: PublicationStatus (required): The lifecycle status of an artifact. Constraints: ext-1 |
![]() ![]() ![]() |
0..1 | boolean | STU3: True if a brand (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isBrand Constraints: ext-1 | |
![]() ![]() ![]() |
0..1 | boolean | STU3: True if medication does not require a prescription (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isOverTheCounter Constraints: ext-1 | |
![]() ![]() ![]() |
0..1 | (Complex) | STU3: Details about packaged medications (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package Constraints: ext-1 | |
![]() ![]() ![]() |
0..* | Attachment | STU3: Picture of the medication (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.image Constraints: ext-1 | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 |
![]() ![]() |
?!Σ | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Medication.status | Base | required | Medication Status Codes | 📍4.3.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Medication | 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.exists() and ('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url)))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(uri) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Medication | 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 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Medication | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | Medication.implicitRules, Medication.extension, Medication.extension:status, Medication.extension:isBrand, Medication.extension:isOverTheCounter, Medication.extension:package, Medication.extension:image, Medication.modifierExtension, Medication.status | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | Medication.extension, Medication.extension:status, Medication.extension:isBrand, Medication.extension:isOverTheCounter, Medication.extension:package, Medication.extension:image, Medication.modifierExtension | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
This structure is derived from Medication
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Medication(4.3.0) | Definition of a Medication | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: meta additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.meta Constraints: ext-1 | |||||
![]() ![]() ![]() |
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example) | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): IETF language tag
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: text additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.text Constraints: ext-1 | |||||
![]() ![]() ![]() |
1..1 | code | generated | extensions | additional | empty Binding: NarrativeStatus (required) | |||||
![]() ![]() ![]() |
C | 1..1 | xhtml | Limited xhtml content Constraints: txt-1, txt-2 | ||||
![]() ![]() |
0..* | Resource | Contained, inline Resources Constraints: dom-r4b | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() |
?! | 0..1 | code | STU3: active | inactive | entered-in-error (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-status Binding: PublicationStatus (required): The lifecycle status of an artifact. Constraints: ext-1 | ||||
![]() ![]() ![]() |
0..1 | boolean | STU3: True if a brand (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isBrand Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | boolean | STU3: True if medication does not require a prescription (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isOverTheCounter Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | (Complex) | STU3: Details about packaged medications (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..* | Attachment | STU3: Picture of the medication (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.image Constraints: ext-1 | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 | ||||
![]() ![]() |
Σ | 0..* | Identifier | Business identifier for this medication | ||||
![]() ![]() |
Σ | 0..1 | CodeableConcept | Codes that identify this medication Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication. | ||||
![]() ![]() |
?!Σ | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use. | ||||
![]() ![]() |
Σ | 0..1 | Reference(Organization) | Manufacturer of the item | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: manufacturer additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
0..1 | CodeableConcept | powder | tablets | capsule + Binding: SNOMEDCTFormCodes (example): A coded concept defining the form of a medication. | |||||
![]() ![]() |
Σ | 0..1 | Ratio | Amount of drug in package | ||||
![]() ![]() |
0..* | BackboneElement | Active or inactive ingredient | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
1..1 | The actual ingredient or content | ||||||
![]() ![]() ![]() ![]() |
Content/Rules for all Types | |||||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: The product contained URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() |
Reference(Substance | Medication) | |||||||
![]() ![]() ![]() |
0..1 | boolean | Active ingredient indicator | |||||
![]() ![]() ![]() |
0..1 | Ratio | Quantity of ingredient present | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | Ratio | STU3: amount additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.ingredient.amount Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Quantity | Numerator value | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Quantity | Denominator value | ||||
![]() ![]() |
0..1 | BackboneElement | Details about packaged medications | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
0..1 | string | Identifier assigned to batch | |||||
![]() ![]() ![]() |
0..1 | dateTime | When batch will expire | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Medication.meta.security | Base | extensible | SecurityLabels | 📍4.3.0 | FHIR Std. |
| Medication.meta.tag | Base | example | Common Tags | 📍4.3.0 | FHIR Std. |
| Medication.language | Base | preferred | Common Languages | 📍4.3.0 | FHIR Std. |
| Medication.text.status | Base | required | NarrativeStatus | 📍4.3.0 | FHIR Std. |
| Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.3.0 | FHIR Std. |
| Medication.status | Base | required | Medication Status Codes | 📍4.3.0 | FHIR Std. |
| Medication.manufacturer.type | Base | extensible | ResourceType | 📍4.3.0 | FHIR Std. |
| Medication.form | Base | example | SNOMED CT Form Codes | 📍4.3.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Medication | 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.exists() and ('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url)))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(uri) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Medication | 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 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Medication | A resource should have narrative for robust management |
text.`div`.exists()
|
| dom-r4b | warning | Medication.contained | Containing new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems |
($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)
|
| ele-1 | error | Medication.meta, Medication.meta.extension, Medication.meta.extension:meta, Medication.meta.versionId, Medication.meta.lastUpdated, Medication.meta.source, Medication.meta.profile, Medication.meta.security, Medication.meta.tag, Medication.implicitRules, Medication.language, Medication.text, Medication.text.extension, Medication.text.extension:text, Medication.text.status, Medication.text.div, Medication.extension, Medication.extension:status, Medication.extension:isBrand, Medication.extension:isOverTheCounter, Medication.extension:package, Medication.extension:image, Medication.modifierExtension, Medication.identifier, Medication.code, Medication.status, Medication.manufacturer, Medication.manufacturer.extension, Medication.manufacturer.extension:manufacturer, Medication.manufacturer.reference, Medication.manufacturer.type, Medication.manufacturer.identifier, Medication.manufacturer.display, Medication.form, Medication.amount, Medication.ingredient, Medication.ingredient.extension, Medication.ingredient.modifierExtension, Medication.ingredient.item[x], Medication.ingredient.item[x].extension, Medication.ingredient.item[x].extension:alternateReference, Medication.ingredient.isActive, Medication.ingredient.strength, Medication.ingredient.strength.extension, Medication.ingredient.strength.extension:amount, Medication.ingredient.strength.numerator, Medication.ingredient.strength.denominator, Medication.batch, Medication.batch.extension, Medication.batch.modifierExtension, Medication.batch.lotNumber, Medication.batch.expirationDate | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | Medication.meta.extension, Medication.meta.extension:meta, Medication.text.extension, Medication.text.extension:text, Medication.extension, Medication.extension:status, Medication.extension:isBrand, Medication.extension:isOverTheCounter, Medication.extension:package, Medication.extension:image, Medication.modifierExtension, Medication.manufacturer.extension, Medication.manufacturer.extension:manufacturer, Medication.ingredient.extension, Medication.ingredient.modifierExtension, Medication.ingredient.item[x].extension, Medication.ingredient.item[x].extension:alternateReference, Medication.ingredient.strength.extension, Medication.ingredient.strength.extension:amount, Medication.batch.extension, Medication.batch.modifierExtension | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| txt-1 | error | Medication.text.div | The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes |
htmlChecks()
|
| txt-2 | error | Medication.text.div | The narrative SHALL have some non-whitespace content |
htmlChecks()
|
This structure is derived from Medication
Summary
Extensions
This structure refers to these extensions:
Maturity: 0
Other representations of profile: CSV, Excel, Schematron