eMediplan CHMED16AF Implementation Guide:

StructureDefinition: chmed16af-medication

Formal Views of Profile Content

The official URL for this profile is:

http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-medication

Profile on Medication

This profile builds on Medication.

This profile was published on Tue Jun 11 11:36:31 CEST 2019 as a draft by IG eMediplan.

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

This structure is derived from Medication

Summary

Prohibited: 4 elements

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication 0..*Definition of a Medication
... code Σ0..1CodeableConceptGTIN Codes that identify this medication
Required Pattern: {"coding":[{"system":"urn:oid:2.51.1.1"}]}
... status 0..0
... manufacturer 0..0
... form 0..0
... ingredient 0..0

doco Documentation for this format

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication I0..*Definition of a Medication
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred)
Max Binding: AllLanguages
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierBusiness identifier for this medication
... code Σ0..1CodeableConceptGTIN Codes that identify this medication
Binding: SNOMEDCTMedicationCodes (example)
Required Pattern: {"coding":[{"system":"urn:oid:2.51.1.1"}]}
... amount Σ0..1RatioAmount of drug in package
... batch I0..1BackboneElementDetails about packaged medications
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... lotNumber 0..1stringIdentifier assigned to batch
.... expirationDate 0..1dateTimeWhen batch will expire

doco Documentation for this format

This structure is derived from Medication

Summary

Prohibited: 4 elements

Differential View

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication 0..*Definition of a Medication
... code Σ0..1CodeableConceptGTIN Codes that identify this medication
Required Pattern: {"coding":[{"system":"urn:oid:2.51.1.1"}]}
... status 0..0
... manufacturer 0..0
... form 0..0
... ingredient 0..0

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication I0..*Definition of a Medication
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred)
Max Binding: AllLanguages
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierBusiness identifier for this medication
... code Σ0..1CodeableConceptGTIN Codes that identify this medication
Binding: SNOMEDCTMedicationCodes (example)
Required Pattern: {"coding":[{"system":"urn:oid:2.51.1.1"}]}
... amount Σ0..1RatioAmount of drug in package
... batch I0..1BackboneElementDetails about packaged medications
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... lotNumber 0..1stringIdentifier assigned to batch
.... expirationDate 0..1dateTimeWhen batch will expire

doco Documentation for this format

 

Constraints

IdPathDetailsRequirements
dom-2MedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-4MedicationIf 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-3MedicationIf 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().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(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-6MedicationA resource should have narrative for robust management
: text.div.exists()
dom-5MedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
ele-1Medication.batchAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
.