ÚNICAS Rare Diseases HL7 FHIR Implementation Guide
0.0.1 - draft

ÚNICAS Rare Diseases HL7 FHIR Implementation Guide - Local Development build (v0.0.1) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: Medication Medicación ÚNICAS

Official URL: https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASMedication Version: 0.0.1
Draft as of 2025-08-12 Computable Name: UNICASMedication

Este profile define las restricciones del recurso Medication para representar el registro de un medicamento en el contexto del caso de uso de ÚNICAS.

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication 0..* Medication Definition of a Medication
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
.... text Σ 0..1 string Nombre comercial
... status ?!Σ 0..1 code Estado
Binding: MedicationStatusCodes (required): A coded concept defining if the medication is in active use.
... doseForm 0..1 CodeableConcept Forma farmacéutica
Binding: Value set de Formas farmacéuticas (Forma de producto) (preferred): Value set de Formas farmacéuticas (Forma de producto)
... ingredient 0..* BackboneElement Principio activo
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... item 1..1 CodeableReference(Substance | Medication) Principio activo
Binding: Value set de Sustancias (preferred): Value set de Sustancias
..... concept Σ 0..1 CodeableConcept Principio activo

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.codepreferredValuesetFarmacos
https://unicas-fhir.sanidad.gob.es/ValueSet/Farmacos
From this IG
Medication.statusrequiredMedicationStatusCodes
http://hl7.org/fhir/ValueSet/medication-status|5.0.0
From the FHIR Standard
Medication.doseFormpreferredValuesetFormasFarmaceuticas(a valid code from urn:oid:2.16.724.4.21.5.14.1)
https://unicas-fhir.sanidad.gob.es/ValueSet/FormasFarmaceuticas
From this IG
Medication.ingredient.itempreferredValuesetSustancias
https://unicas-fhir.sanidad.gob.es/ValueSet/Sustancias
From this IG

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationIf 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-4errorMedicationIf 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-5errorMedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationA 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()

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication Medication
... code 1..1 CodeableConcept Fármaco
Binding: Value set de Fármacos (preferred): Value set de Fármacos
.... coding
..... system 1..1 uri URL del SNOMED CT. Extensión para España del SNS | OID del ATC | OID del DCSA
..... code 1..1 code Código del fármaco
..... display 1..1 string Descripción del fármaco
.... text 0..1 string Nombre comercial
... status 0..1 code Estado
... doseForm 0..1 CodeableConcept Forma farmacéutica
Binding: Value set de Formas farmacéuticas (Forma de producto) (preferred): Value set de Formas farmacéuticas (Forma de producto)
.... coding
..... system 0..1 uri OID del Nomenclátor de Prescripción AEMPS. Forma Farmacéutica
..... code 0..1 code Código de la forma farmacéutica
..... display 0..1 string Descripción de la forma farmacéutica
.... item 1..1 CodeableReference(Substance | Medication) Principio activo
Binding: Value set de Sustancias (preferred): Value set de Sustancias
..... concept 0..1 CodeableConcept Principio activo
...... coding
....... system 0..1 uri URL del SNOMED CT. Extensión para España del SNS
....... code 0..1 code Código del principio activo
....... display 0..1 string Descripción del principio activo

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Medication.codepreferredValuesetFarmacos
https://unicas-fhir.sanidad.gob.es/ValueSet/Farmacos
From this IG
Medication.doseFormpreferredValuesetFormasFarmaceuticas(a valid code from urn:oid:2.16.724.4.21.5.14.1)
https://unicas-fhir.sanidad.gob.es/ValueSet/FormasFarmaceuticas
From this IG
Medication.ingredient.itempreferredValuesetSustancias
https://unicas-fhir.sanidad.gob.es/ValueSet/Sustancias
From this IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication 0..* Medication Definition of a Medication
... 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
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier Business identifier for this medication
... code Σ 1..1 CodeableConcept Fármaco
Binding: Value set de Fármacos (preferred): Value set de Fármacos
.... 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 Code defined by a terminology system
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri URL del SNOMED CT. Extensión para España del SNS | OID del ATC | OID del DCSA
..... version Σ 0..1 string Version of the system - if relevant
..... code ΣC 1..1 code Código del fármaco
..... display ΣC 1..1 string Descripción del fármaco
..... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Nombre comercial
... status ?!Σ 0..1 code Estado
Binding: MedicationStatusCodes (required): A coded concept defining if the medication is in active use.
... marketingAuthorizationHolder Σ 0..1 Reference(Organization) Organization that has authorization to market medication
... doseForm 0..1 CodeableConcept Forma farmacéutica
Binding: Value set de Formas farmacéuticas (Forma de producto) (preferred): Value set de Formas farmacéuticas (Forma de producto)
.... 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 Code defined by a terminology system
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 0..1 uri OID del Nomenclátor de Prescripción AEMPS. Forma Farmacéutica
..... version Σ 0..1 string Version of the system - if relevant
..... code ΣC 0..1 code Código de la forma farmacéutica
..... display ΣC 0..1 string Descripción de la forma farmacéutica
..... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Plain text representation of the concept
... totalVolume Σ 0..1 Quantity When the specified product code does not infer a package size, this is the specific amount of drug in the product
... ingredient 0..* BackboneElement Principio activo
.... 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
.... item 1..1 CodeableReference(Substance | Medication) Principio activo
Binding: Value set de Sustancias (preferred): Value set de Sustancias
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... concept Σ 0..1 CodeableConcept Principio activo
...... 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 Code defined by a terminology system
....... id 0..1 id Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ 0..1 uri URL del SNOMED CT. Extensión para España del SNS
....... version Σ 0..1 string Version of the system - if relevant
....... code ΣC 0..1 code Código del principio activo
....... display ΣC 0..1 string Descripción del principio activo
....... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... reference Σ 0..1 Reference() Reference to a resource (by instance)
.... isActive 0..1 boolean Active ingredient indicator
.... strength[x] 0..1 Quantity of ingredient present
Binding: MedicationIngredientStrengthCodes (preferred): A coded concpet defining the strength of an ingredient.
..... strengthRatio Ratio
..... strengthCodeableConcept CodeableConcept
..... strengthQuantity Quantity
... batch 0..1 BackboneElement Details about packaged medications
.... 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
.... lotNumber 0..1 string Identifier assigned to batch
.... expirationDate 0..1 dateTime When batch will expire
... definition 0..1 Reference(MedicationKnowledge) Knowledge about this medication

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
From the FHIR Standard
Medication.codepreferredValuesetFarmacos
https://unicas-fhir.sanidad.gob.es/ValueSet/Farmacos
From this IG
Medication.statusrequiredMedicationStatusCodes
http://hl7.org/fhir/ValueSet/medication-status|5.0.0
From the FHIR Standard
Medication.doseFormpreferredValuesetFormasFarmaceuticas(a valid code from urn:oid:2.16.724.4.21.5.14.1)
https://unicas-fhir.sanidad.gob.es/ValueSet/FormasFarmaceuticas
From this IG
Medication.ingredient.itempreferredValuesetSustancias
https://unicas-fhir.sanidad.gob.es/ValueSet/Sustancias
From this IG
Medication.ingredient.strength[x]preferredMedicationIngredientStrengthCodes
http://hl7.org/fhir/ValueSet/medication-ingredientstrength
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationIf 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-4errorMedicationIf 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-5errorMedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationA 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()

This structure is derived from Medication

Summary

Mandatory: 1 element(3 nested mandatory elements)

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication 0..* Medication Definition of a Medication
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
.... text Σ 0..1 string Nombre comercial
... status ?!Σ 0..1 code Estado
Binding: MedicationStatusCodes (required): A coded concept defining if the medication is in active use.
... doseForm 0..1 CodeableConcept Forma farmacéutica
Binding: Value set de Formas farmacéuticas (Forma de producto) (preferred): Value set de Formas farmacéuticas (Forma de producto)
... ingredient 0..* BackboneElement Principio activo
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... item 1..1 CodeableReference(Substance | Medication) Principio activo
Binding: Value set de Sustancias (preferred): Value set de Sustancias
..... concept Σ 0..1 CodeableConcept Principio activo

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.codepreferredValuesetFarmacos
https://unicas-fhir.sanidad.gob.es/ValueSet/Farmacos
From this IG
Medication.statusrequiredMedicationStatusCodes
http://hl7.org/fhir/ValueSet/medication-status|5.0.0
From the FHIR Standard
Medication.doseFormpreferredValuesetFormasFarmaceuticas(a valid code from urn:oid:2.16.724.4.21.5.14.1)
https://unicas-fhir.sanidad.gob.es/ValueSet/FormasFarmaceuticas
From this IG
Medication.ingredient.itempreferredValuesetSustancias
https://unicas-fhir.sanidad.gob.es/ValueSet/Sustancias
From this IG

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationIf 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-4errorMedicationIf 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-5errorMedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationA 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()

Differential View

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication Medication
... code 1..1 CodeableConcept Fármaco
Binding: Value set de Fármacos (preferred): Value set de Fármacos
.... coding
..... system 1..1 uri URL del SNOMED CT. Extensión para España del SNS | OID del ATC | OID del DCSA
..... code 1..1 code Código del fármaco
..... display 1..1 string Descripción del fármaco
.... text 0..1 string Nombre comercial
... status 0..1 code Estado
... doseForm 0..1 CodeableConcept Forma farmacéutica
Binding: Value set de Formas farmacéuticas (Forma de producto) (preferred): Value set de Formas farmacéuticas (Forma de producto)
.... coding
..... system 0..1 uri OID del Nomenclátor de Prescripción AEMPS. Forma Farmacéutica
..... code 0..1 code Código de la forma farmacéutica
..... display 0..1 string Descripción de la forma farmacéutica
.... item 1..1 CodeableReference(Substance | Medication) Principio activo
Binding: Value set de Sustancias (preferred): Value set de Sustancias
..... concept 0..1 CodeableConcept Principio activo
...... coding
....... system 0..1 uri URL del SNOMED CT. Extensión para España del SNS
....... code 0..1 code Código del principio activo
....... display 0..1 string Descripción del principio activo

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Medication.codepreferredValuesetFarmacos
https://unicas-fhir.sanidad.gob.es/ValueSet/Farmacos
From this IG
Medication.doseFormpreferredValuesetFormasFarmaceuticas(a valid code from urn:oid:2.16.724.4.21.5.14.1)
https://unicas-fhir.sanidad.gob.es/ValueSet/FormasFarmaceuticas
From this IG
Medication.ingredient.itempreferredValuesetSustancias
https://unicas-fhir.sanidad.gob.es/ValueSet/Sustancias
From this IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication 0..* Medication Definition of a Medication
... 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
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier Business identifier for this medication
... code Σ 1..1 CodeableConcept Fármaco
Binding: Value set de Fármacos (preferred): Value set de Fármacos
.... 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 Code defined by a terminology system
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri URL del SNOMED CT. Extensión para España del SNS | OID del ATC | OID del DCSA
..... version Σ 0..1 string Version of the system - if relevant
..... code ΣC 1..1 code Código del fármaco
..... display ΣC 1..1 string Descripción del fármaco
..... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Nombre comercial
... status ?!Σ 0..1 code Estado
Binding: MedicationStatusCodes (required): A coded concept defining if the medication is in active use.
... marketingAuthorizationHolder Σ 0..1 Reference(Organization) Organization that has authorization to market medication
... doseForm 0..1 CodeableConcept Forma farmacéutica
Binding: Value set de Formas farmacéuticas (Forma de producto) (preferred): Value set de Formas farmacéuticas (Forma de producto)
.... 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 Code defined by a terminology system
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 0..1 uri OID del Nomenclátor de Prescripción AEMPS. Forma Farmacéutica
..... version Σ 0..1 string Version of the system - if relevant
..... code ΣC 0..1 code Código de la forma farmacéutica
..... display ΣC 0..1 string Descripción de la forma farmacéutica
..... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Plain text representation of the concept
... totalVolume Σ 0..1 Quantity When the specified product code does not infer a package size, this is the specific amount of drug in the product
... ingredient 0..* BackboneElement Principio activo
.... 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
.... item 1..1 CodeableReference(Substance | Medication) Principio activo
Binding: Value set de Sustancias (preferred): Value set de Sustancias
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... concept Σ 0..1 CodeableConcept Principio activo
...... 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 Code defined by a terminology system
....... id 0..1 id Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ 0..1 uri URL del SNOMED CT. Extensión para España del SNS
....... version Σ 0..1 string Version of the system - if relevant
....... code ΣC 0..1 code Código del principio activo
....... display ΣC 0..1 string Descripción del principio activo
....... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... reference Σ 0..1 Reference() Reference to a resource (by instance)
.... isActive 0..1 boolean Active ingredient indicator
.... strength[x] 0..1 Quantity of ingredient present
Binding: MedicationIngredientStrengthCodes (preferred): A coded concpet defining the strength of an ingredient.
..... strengthRatio Ratio
..... strengthCodeableConcept CodeableConcept
..... strengthQuantity Quantity
... batch 0..1 BackboneElement Details about packaged medications
.... 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
.... lotNumber 0..1 string Identifier assigned to batch
.... expirationDate 0..1 dateTime When batch will expire
... definition 0..1 Reference(MedicationKnowledge) Knowledge about this medication

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
From the FHIR Standard
Medication.codepreferredValuesetFarmacos
https://unicas-fhir.sanidad.gob.es/ValueSet/Farmacos
From this IG
Medication.statusrequiredMedicationStatusCodes
http://hl7.org/fhir/ValueSet/medication-status|5.0.0
From the FHIR Standard
Medication.doseFormpreferredValuesetFormasFarmaceuticas(a valid code from urn:oid:2.16.724.4.21.5.14.1)
https://unicas-fhir.sanidad.gob.es/ValueSet/FormasFarmaceuticas
From this IG
Medication.ingredient.itempreferredValuesetSustancias
https://unicas-fhir.sanidad.gob.es/ValueSet/Sustancias
From this IG
Medication.ingredient.strength[x]preferredMedicationIngredientStrengthCodes
http://hl7.org/fhir/ValueSet/medication-ingredientstrength
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationIf 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-4errorMedicationIf 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-5errorMedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationA 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()

This structure is derived from Medication

Summary

Mandatory: 1 element(3 nested mandatory elements)

 

Other representations of profile: CSV, Excel, Schematron

ÚNICAS está impulsado por el Consejo Interterritorial del Sistema Nacional de Salud, y financiado con fondos Next Generation de la Unión Europea, en el marco del Plan de Recuperación, Transformación y Resiliencia del Gobierno de España. El Ministerio de Sanidad ejerce la coordinación del proyecto, y Cataluña lidera la parte del desarrollo de los activos tecnológicos para su implementación.