Extensions for Using Data Elements from FHIR DSTU2 in FHIR R5
0.1.0 - STU International flag

Extensions for Using Data Elements from FHIR DSTU2 in FHIR R5 - Downloaded Version null See the Directory of published versions

Resource Profile: Profile_R2_VisionPrescription_R5

Official URL: http://hl7.org/fhir/1.0/StructureDefinition/profile-VisionPrescription Version: 0.1.0
Standards status: Trial-use Maturity Level: 0 Computable Name: Profile_R2_VisionPrescription_R5

This cross-version profile allows DSTU2 VisionPrescription content to be represented via FHIR R5 VisionPrescription resources.

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
.. VisionPrescription 0..* VisionPrescription(5.0.0) Prescription for vision correction products for a patient
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:reason 0..1 CodeableConcept, Reference(Cross-version Profile for DSTU2.Condition for use in FHIR R5(0.1.0) | Condition) DSTU2: Reason or indication for writing the prescription (new)
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.reason
Constraints: ext-1
... status ?!Σ 1..1 code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.
... created Σ 1..1 dateTime Response creation date
... patient Σ 1..1 Reference(Patient) Who prescription is for
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:patient 0..1 Reference(Resource) DSTU2: patient additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
... dateWritten Σ 1..1 dateTime When prescription was authorized
... prescriber Σ 1..1 Reference(Practitioner | PractitionerRole) Who authorized the vision prescription
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:prescriber 0..1 Reference(Resource) DSTU2: Who authorizes the vision product additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
... lensSpecification Σ 1..* BackboneElement Vision lens authorization
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... product Σ 1..1 CodeableConcept Product to be supplied
Binding: ExampleVisionPrescriptionProductCodes (example): A coded concept describing the vision products.
.... eye Σ 1..1 code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
VisionPrescription.status Base required Financial Resource Status Codes 📍5.0.0 FHIR Std.
VisionPrescription.lensSpecification.​product Base example Example Vision Prescription Product Codes 📍5.0.0 FHIR Std.
VisionPrescription.lensSpecification.​eye Base required Vision Eyes 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error VisionPrescription If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error VisionPrescription If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error VisionPrescription 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 VisionPrescription If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice VisionPrescription A resource should have narrative for robust management text.`div`.exists()
ele-1 error VisionPrescription.implicitRules, VisionPrescription.extension, VisionPrescription.extension:reason, VisionPrescription.modifierExtension, VisionPrescription.status, VisionPrescription.created, VisionPrescription.patient, VisionPrescription.patient.extension, VisionPrescription.patient.extension:patient, VisionPrescription.patient.reference, VisionPrescription.dateWritten, VisionPrescription.prescriber, VisionPrescription.prescriber.extension, VisionPrescription.prescriber.extension:prescriber, VisionPrescription.prescriber.reference, VisionPrescription.lensSpecification, VisionPrescription.lensSpecification.modifierExtension, VisionPrescription.lensSpecification.product, VisionPrescription.lensSpecification.eye All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error VisionPrescription.extension, VisionPrescription.extension:reason, VisionPrescription.modifierExtension, VisionPrescription.patient.extension, VisionPrescription.patient.extension:patient, VisionPrescription.prescriber.extension, VisionPrescription.prescriber.extension:prescriber, VisionPrescription.lensSpecification.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from VisionPrescription

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription 0..* VisionPrescription(5.0.0) Prescription for vision correction products for a patient
... meta
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:meta 0..1 Meta DSTU2: meta additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.meta
... text
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:text 0..1 (Complex) DSTU2: text additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.text
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:reason 0..1 CodeableConcept, Reference(Cross-version Profile for DSTU2.Condition for use in FHIR R5(0.1.0) | Condition) DSTU2: Reason or indication for writing the prescription (new)
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.reason
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:identifier 0..* Identifier DSTU2: Business identifier additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.identifier
... patient
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:patient 0..1 Reference(Resource) DSTU2: patient additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... encounter
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:encounter 0..1 Reference(Resource) DSTU2: encounter additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... prescriber
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:prescriber 0..1 Reference(Resource) DSTU2: Who authorizes the vision product additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... lensSpecification
.... note
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:notes 0..1 string DSTU2: notes additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.dispense.notes

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription 0..* VisionPrescription(5.0.0) Prescription for vision correction products for a patient
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:meta 0..1 Meta DSTU2: meta additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.meta
Constraints: ext-1
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... profile Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: AllSecurityLabels . (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... tag Σ 0..* Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
... 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
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:text 0..1 (Complex) DSTU2: text additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.text
Constraints: ext-1
.... status 1..1 code generated | extensions | additional | empty
Binding: NarrativeStatus (required): The status of a resource narrative.
.... div C 1..1 xhtml Limited xhtml content
Constraints: txt-1, txt-2
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:reason 0..1 CodeableConcept, Reference(Cross-version Profile for DSTU2.Condition for use in FHIR R5(0.1.0) | Condition) DSTU2: Reason or indication for writing the prescription (new)
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.reason
Constraints: ext-1
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
... identifier 0..* Identifier Business Identifier for vision prescription
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:identifier 0..* Identifier DSTU2: Business identifier additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.identifier
Constraints: ext-1
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type Σ 0..1 CodeableConcept Description of identifier
Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system Σ 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value ΣC 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)
... status ?!Σ 1..1 code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.
... created Σ 1..1 dateTime Response creation date
... patient Σ 1..1 Reference(Patient) Who prescription is for
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:patient 0..1 Reference(Resource) DSTU2: patient additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType . (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
.... display ΣC 0..1 string Text alternative for the resource
... encounter 0..1 Reference(Encounter) Created during encounter / admission / stay
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:encounter 0..1 Reference(Resource) DSTU2: encounter additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType . (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
.... display ΣC 0..1 string Text alternative for the resource
... dateWritten Σ 1..1 dateTime When prescription was authorized
... prescriber Σ 1..1 Reference(Practitioner | PractitionerRole) Who authorized the vision prescription
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:prescriber 0..1 Reference(Resource) DSTU2: Who authorizes the vision product additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType . (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
.... display ΣC 0..1 string Text alternative for the resource
... lensSpecification Σ 1..* BackboneElement Vision lens authorization
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... product Σ 1..1 CodeableConcept Product to be supplied
Binding: ExampleVisionPrescriptionProductCodes (example): A coded concept describing the vision products.
.... eye Σ 1..1 code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.
.... sphere 0..1 decimal Power of the lens
.... cylinder 0..1 decimal Lens power for astigmatism
.... axis 0..1 integer Lens meridian which contain no power for astigmatism
.... prism 0..* BackboneElement Eye alignment compensation
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... amount 1..1 decimal Amount of adjustment
..... base 1..1 code up | down | in | out
Binding: VisionBase (required): A coded concept listing the base codes.
.... add 0..1 decimal Added power for multifocal levels
.... power 0..1 decimal Contact lens power
.... backCurve 0..1 decimal Contact lens back curvature
.... diameter 0..1 decimal Contact lens diameter
.... duration 0..1 SimpleQuantity(5.0.0) Lens wear duration
.... color 0..1 string Color required
.... brand 0..1 string Brand required
.... note 0..* Annotation Notes for coatings
..... id 0..1 id Unique id for inter-element referencing
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
...... extension:notes 0..1 string DSTU2: notes additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.dispense.notes
Constraints: ext-1
..... author[x] Σ 0..1 Individual responsible for the annotation
...... authorReference Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization)
...... authorString string
..... 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

Path Status Usage ValueSet Version Source
VisionPrescription.meta.​security Base extensible All Security Labels . 📍5.0.0 tx.fhir.org
VisionPrescription.meta.​tag Base example Common Tags 📍5.0.0 FHIR Std.
VisionPrescription.language Base required All Languages 📍5.0.0 FHIR Std.
VisionPrescription.text.​status Base required NarrativeStatus 📍5.0.0 FHIR Std.
VisionPrescription.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
VisionPrescription.identifier.​type Base extensible Identifier Type Codes 📍5.0.0 FHIR Std.
VisionPrescription.status Base required Financial Resource Status Codes 📍5.0.0 FHIR Std.
VisionPrescription.patient.​type Base extensible Resource Types . 📍5.0.0 tx.fhir.org
VisionPrescription.encounter.​type Base extensible Resource Types . 📍5.0.0 tx.fhir.org
VisionPrescription.prescriber.​type Base extensible Resource Types . 📍5.0.0 tx.fhir.org
VisionPrescription.lensSpecification.​product Base example Example Vision Prescription Product Codes 📍5.0.0 FHIR Std.
VisionPrescription.lensSpecification.​eye Base required Vision Eyes 📍5.0.0 FHIR Std.
VisionPrescription.lensSpecification.​prism.base Base required Vision Base 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error VisionPrescription If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error VisionPrescription If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error VisionPrescription 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 VisionPrescription If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice VisionPrescription A resource should have narrative for robust management text.`div`.exists()
ele-1 error VisionPrescription.meta, VisionPrescription.meta.extension, VisionPrescription.meta.extension:meta, VisionPrescription.meta.versionId, VisionPrescription.meta.lastUpdated, VisionPrescription.meta.source, VisionPrescription.meta.profile, VisionPrescription.meta.security, VisionPrescription.meta.tag, VisionPrescription.implicitRules, VisionPrescription.language, VisionPrescription.text, VisionPrescription.text.extension, VisionPrescription.text.extension:text, VisionPrescription.text.status, VisionPrescription.text.div, VisionPrescription.extension, VisionPrescription.extension:reason, VisionPrescription.modifierExtension, VisionPrescription.identifier, VisionPrescription.identifier.extension, VisionPrescription.identifier.extension:identifier, VisionPrescription.identifier.use, VisionPrescription.identifier.type, VisionPrescription.identifier.system, VisionPrescription.identifier.value, VisionPrescription.identifier.period, VisionPrescription.identifier.assigner, VisionPrescription.status, VisionPrescription.created, VisionPrescription.patient, VisionPrescription.patient.extension, VisionPrescription.patient.extension:patient, VisionPrescription.patient.reference, VisionPrescription.patient.type, VisionPrescription.patient.identifier, VisionPrescription.patient.display, VisionPrescription.encounter, VisionPrescription.encounter.extension, VisionPrescription.encounter.extension:encounter, VisionPrescription.encounter.reference, VisionPrescription.encounter.type, VisionPrescription.encounter.identifier, VisionPrescription.encounter.display, VisionPrescription.dateWritten, VisionPrescription.prescriber, VisionPrescription.prescriber.extension, VisionPrescription.prescriber.extension:prescriber, VisionPrescription.prescriber.reference, VisionPrescription.prescriber.type, VisionPrescription.prescriber.identifier, VisionPrescription.prescriber.display, VisionPrescription.lensSpecification, VisionPrescription.lensSpecification.extension, VisionPrescription.lensSpecification.modifierExtension, VisionPrescription.lensSpecification.product, VisionPrescription.lensSpecification.eye, VisionPrescription.lensSpecification.sphere, VisionPrescription.lensSpecification.cylinder, VisionPrescription.lensSpecification.axis, VisionPrescription.lensSpecification.prism, VisionPrescription.lensSpecification.prism.extension, VisionPrescription.lensSpecification.prism.modifierExtension, VisionPrescription.lensSpecification.prism.amount, VisionPrescription.lensSpecification.prism.base, VisionPrescription.lensSpecification.add, VisionPrescription.lensSpecification.power, VisionPrescription.lensSpecification.backCurve, VisionPrescription.lensSpecification.diameter, VisionPrescription.lensSpecification.duration, VisionPrescription.lensSpecification.color, VisionPrescription.lensSpecification.brand, VisionPrescription.lensSpecification.note, VisionPrescription.lensSpecification.note.extension, VisionPrescription.lensSpecification.note.extension:notes, VisionPrescription.lensSpecification.note.author[x], VisionPrescription.lensSpecification.note.time, VisionPrescription.lensSpecification.note.text All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error VisionPrescription.meta.extension, VisionPrescription.meta.extension:meta, VisionPrescription.text.extension, VisionPrescription.text.extension:text, VisionPrescription.extension, VisionPrescription.extension:reason, VisionPrescription.modifierExtension, VisionPrescription.identifier.extension, VisionPrescription.identifier.extension:identifier, VisionPrescription.patient.extension, VisionPrescription.patient.extension:patient, VisionPrescription.encounter.extension, VisionPrescription.encounter.extension:encounter, VisionPrescription.prescriber.extension, VisionPrescription.prescriber.extension:prescriber, VisionPrescription.lensSpecification.extension, VisionPrescription.lensSpecification.modifierExtension, VisionPrescription.lensSpecification.prism.extension, VisionPrescription.lensSpecification.prism.modifierExtension, VisionPrescription.lensSpecification.note.extension, VisionPrescription.lensSpecification.note.extension:notes Must have either extensions or value[x], not both extension.exists() != value.exists()
txt-1 error VisionPrescription.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 VisionPrescription.text.div The narrative SHALL have some non-whitespace content htmlChecks()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription 0..* VisionPrescription(5.0.0) Prescription for vision correction products for a patient
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:reason 0..1 CodeableConcept, Reference(Cross-version Profile for DSTU2.Condition for use in FHIR R5(0.1.0) | Condition) DSTU2: Reason or indication for writing the prescription (new)
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.reason
Constraints: ext-1
... status ?!Σ 1..1 code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.
... created Σ 1..1 dateTime Response creation date
... patient Σ 1..1 Reference(Patient) Who prescription is for
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:patient 0..1 Reference(Resource) DSTU2: patient additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
... dateWritten Σ 1..1 dateTime When prescription was authorized
... prescriber Σ 1..1 Reference(Practitioner | PractitionerRole) Who authorized the vision prescription
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:prescriber 0..1 Reference(Resource) DSTU2: Who authorizes the vision product additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
... lensSpecification Σ 1..* BackboneElement Vision lens authorization
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... product Σ 1..1 CodeableConcept Product to be supplied
Binding: ExampleVisionPrescriptionProductCodes (example): A coded concept describing the vision products.
.... eye Σ 1..1 code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
VisionPrescription.status Base required Financial Resource Status Codes 📍5.0.0 FHIR Std.
VisionPrescription.lensSpecification.​product Base example Example Vision Prescription Product Codes 📍5.0.0 FHIR Std.
VisionPrescription.lensSpecification.​eye Base required Vision Eyes 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error VisionPrescription If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error VisionPrescription If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error VisionPrescription 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 VisionPrescription If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice VisionPrescription A resource should have narrative for robust management text.`div`.exists()
ele-1 error VisionPrescription.implicitRules, VisionPrescription.extension, VisionPrescription.extension:reason, VisionPrescription.modifierExtension, VisionPrescription.status, VisionPrescription.created, VisionPrescription.patient, VisionPrescription.patient.extension, VisionPrescription.patient.extension:patient, VisionPrescription.patient.reference, VisionPrescription.dateWritten, VisionPrescription.prescriber, VisionPrescription.prescriber.extension, VisionPrescription.prescriber.extension:prescriber, VisionPrescription.prescriber.reference, VisionPrescription.lensSpecification, VisionPrescription.lensSpecification.modifierExtension, VisionPrescription.lensSpecification.product, VisionPrescription.lensSpecification.eye All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error VisionPrescription.extension, VisionPrescription.extension:reason, VisionPrescription.modifierExtension, VisionPrescription.patient.extension, VisionPrescription.patient.extension:patient, VisionPrescription.prescriber.extension, VisionPrescription.prescriber.extension:prescriber, VisionPrescription.lensSpecification.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()

Differential View

This structure is derived from VisionPrescription

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription 0..* VisionPrescription(5.0.0) Prescription for vision correction products for a patient
... meta
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:meta 0..1 Meta DSTU2: meta additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.meta
... text
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:text 0..1 (Complex) DSTU2: text additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.text
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:reason 0..1 CodeableConcept, Reference(Cross-version Profile for DSTU2.Condition for use in FHIR R5(0.1.0) | Condition) DSTU2: Reason or indication for writing the prescription (new)
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.reason
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:identifier 0..* Identifier DSTU2: Business identifier additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.identifier
... patient
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:patient 0..1 Reference(Resource) DSTU2: patient additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... encounter
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:encounter 0..1 Reference(Resource) DSTU2: encounter additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... prescriber
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:prescriber 0..1 Reference(Resource) DSTU2: Who authorizes the vision product additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
... lensSpecification
.... note
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:notes 0..1 string DSTU2: notes additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.dispense.notes

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription 0..* VisionPrescription(5.0.0) Prescription for vision correction products for a patient
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:meta 0..1 Meta DSTU2: meta additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.meta
Constraints: ext-1
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... profile Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: AllSecurityLabels . (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... tag Σ 0..* Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
... 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
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:text 0..1 (Complex) DSTU2: text additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.text
Constraints: ext-1
.... status 1..1 code generated | extensions | additional | empty
Binding: NarrativeStatus (required): The status of a resource narrative.
.... div C 1..1 xhtml Limited xhtml content
Constraints: txt-1, txt-2
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:reason 0..1 CodeableConcept, Reference(Cross-version Profile for DSTU2.Condition for use in FHIR R5(0.1.0) | Condition) DSTU2: Reason or indication for writing the prescription (new)
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.reason
Constraints: ext-1
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
... identifier 0..* Identifier Business Identifier for vision prescription
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:identifier 0..* Identifier DSTU2: Business identifier additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.identifier
Constraints: ext-1
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type Σ 0..1 CodeableConcept Description of identifier
Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system Σ 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value ΣC 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)
... status ?!Σ 1..1 code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.
... created Σ 1..1 dateTime Response creation date
... patient Σ 1..1 Reference(Patient) Who prescription is for
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:patient 0..1 Reference(Resource) DSTU2: patient additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType . (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
.... display ΣC 0..1 string Text alternative for the resource
... encounter 0..1 Reference(Encounter) Created during encounter / admission / stay
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:encounter 0..1 Reference(Resource) DSTU2: encounter additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType . (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
.... display ΣC 0..1 string Text alternative for the resource
... dateWritten Σ 1..1 dateTime When prescription was authorized
... prescriber Σ 1..1 Reference(Practitioner | PractitionerRole) Who authorized the vision prescription
.... id 0..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
..... extension:prescriber 0..1 Reference(Resource) DSTU2: Who authorizes the vision product additional types
URL: http://hl7.org/fhir/StructureDefinition/alternate-reference
Constraints: ext-1
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType . (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
.... display ΣC 0..1 string Text alternative for the resource
... lensSpecification Σ 1..* BackboneElement Vision lens authorization
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... product Σ 1..1 CodeableConcept Product to be supplied
Binding: ExampleVisionPrescriptionProductCodes (example): A coded concept describing the vision products.
.... eye Σ 1..1 code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.
.... sphere 0..1 decimal Power of the lens
.... cylinder 0..1 decimal Lens power for astigmatism
.... axis 0..1 integer Lens meridian which contain no power for astigmatism
.... prism 0..* BackboneElement Eye alignment compensation
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... amount 1..1 decimal Amount of adjustment
..... base 1..1 code up | down | in | out
Binding: VisionBase (required): A coded concept listing the base codes.
.... add 0..1 decimal Added power for multifocal levels
.... power 0..1 decimal Contact lens power
.... backCurve 0..1 decimal Contact lens back curvature
.... diameter 0..1 decimal Contact lens diameter
.... duration 0..1 SimpleQuantity(5.0.0) Lens wear duration
.... color 0..1 string Color required
.... brand 0..1 string Brand required
.... note 0..* Annotation Notes for coatings
..... id 0..1 id Unique id for inter-element referencing
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
...... extension:notes 0..1 string DSTU2: notes additional types
URL: http://hl7.org/fhir/1.0/StructureDefinition/extension-VisionPrescription.dispense.notes
Constraints: ext-1
..... author[x] Σ 0..1 Individual responsible for the annotation
...... authorReference Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization)
...... authorString string
..... 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

Path Status Usage ValueSet Version Source
VisionPrescription.meta.​security Base extensible All Security Labels . 📍5.0.0 tx.fhir.org
VisionPrescription.meta.​tag Base example Common Tags 📍5.0.0 FHIR Std.
VisionPrescription.language Base required All Languages 📍5.0.0 FHIR Std.
VisionPrescription.text.​status Base required NarrativeStatus 📍5.0.0 FHIR Std.
VisionPrescription.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
VisionPrescription.identifier.​type Base extensible Identifier Type Codes 📍5.0.0 FHIR Std.
VisionPrescription.status Base required Financial Resource Status Codes 📍5.0.0 FHIR Std.
VisionPrescription.patient.​type Base extensible Resource Types . 📍5.0.0 tx.fhir.org
VisionPrescription.encounter.​type Base extensible Resource Types . 📍5.0.0 tx.fhir.org
VisionPrescription.prescriber.​type Base extensible Resource Types . 📍5.0.0 tx.fhir.org
VisionPrescription.lensSpecification.​product Base example Example Vision Prescription Product Codes 📍5.0.0 FHIR Std.
VisionPrescription.lensSpecification.​eye Base required Vision Eyes 📍5.0.0 FHIR Std.
VisionPrescription.lensSpecification.​prism.base Base required Vision Base 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error VisionPrescription If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error VisionPrescription If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error VisionPrescription 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 VisionPrescription If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice VisionPrescription A resource should have narrative for robust management text.`div`.exists()
ele-1 error VisionPrescription.meta, VisionPrescription.meta.extension, VisionPrescription.meta.extension:meta, VisionPrescription.meta.versionId, VisionPrescription.meta.lastUpdated, VisionPrescription.meta.source, VisionPrescription.meta.profile, VisionPrescription.meta.security, VisionPrescription.meta.tag, VisionPrescription.implicitRules, VisionPrescription.language, VisionPrescription.text, VisionPrescription.text.extension, VisionPrescription.text.extension:text, VisionPrescription.text.status, VisionPrescription.text.div, VisionPrescription.extension, VisionPrescription.extension:reason, VisionPrescription.modifierExtension, VisionPrescription.identifier, VisionPrescription.identifier.extension, VisionPrescription.identifier.extension:identifier, VisionPrescription.identifier.use, VisionPrescription.identifier.type, VisionPrescription.identifier.system, VisionPrescription.identifier.value, VisionPrescription.identifier.period, VisionPrescription.identifier.assigner, VisionPrescription.status, VisionPrescription.created, VisionPrescription.patient, VisionPrescription.patient.extension, VisionPrescription.patient.extension:patient, VisionPrescription.patient.reference, VisionPrescription.patient.type, VisionPrescription.patient.identifier, VisionPrescription.patient.display, VisionPrescription.encounter, VisionPrescription.encounter.extension, VisionPrescription.encounter.extension:encounter, VisionPrescription.encounter.reference, VisionPrescription.encounter.type, VisionPrescription.encounter.identifier, VisionPrescription.encounter.display, VisionPrescription.dateWritten, VisionPrescription.prescriber, VisionPrescription.prescriber.extension, VisionPrescription.prescriber.extension:prescriber, VisionPrescription.prescriber.reference, VisionPrescription.prescriber.type, VisionPrescription.prescriber.identifier, VisionPrescription.prescriber.display, VisionPrescription.lensSpecification, VisionPrescription.lensSpecification.extension, VisionPrescription.lensSpecification.modifierExtension, VisionPrescription.lensSpecification.product, VisionPrescription.lensSpecification.eye, VisionPrescription.lensSpecification.sphere, VisionPrescription.lensSpecification.cylinder, VisionPrescription.lensSpecification.axis, VisionPrescription.lensSpecification.prism, VisionPrescription.lensSpecification.prism.extension, VisionPrescription.lensSpecification.prism.modifierExtension, VisionPrescription.lensSpecification.prism.amount, VisionPrescription.lensSpecification.prism.base, VisionPrescription.lensSpecification.add, VisionPrescription.lensSpecification.power, VisionPrescription.lensSpecification.backCurve, VisionPrescription.lensSpecification.diameter, VisionPrescription.lensSpecification.duration, VisionPrescription.lensSpecification.color, VisionPrescription.lensSpecification.brand, VisionPrescription.lensSpecification.note, VisionPrescription.lensSpecification.note.extension, VisionPrescription.lensSpecification.note.extension:notes, VisionPrescription.lensSpecification.note.author[x], VisionPrescription.lensSpecification.note.time, VisionPrescription.lensSpecification.note.text All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error VisionPrescription.meta.extension, VisionPrescription.meta.extension:meta, VisionPrescription.text.extension, VisionPrescription.text.extension:text, VisionPrescription.extension, VisionPrescription.extension:reason, VisionPrescription.modifierExtension, VisionPrescription.identifier.extension, VisionPrescription.identifier.extension:identifier, VisionPrescription.patient.extension, VisionPrescription.patient.extension:patient, VisionPrescription.encounter.extension, VisionPrescription.encounter.extension:encounter, VisionPrescription.prescriber.extension, VisionPrescription.prescriber.extension:prescriber, VisionPrescription.lensSpecification.extension, VisionPrescription.lensSpecification.modifierExtension, VisionPrescription.lensSpecification.prism.extension, VisionPrescription.lensSpecification.prism.modifierExtension, VisionPrescription.lensSpecification.note.extension, VisionPrescription.lensSpecification.note.extension:notes Must have either extensions or value[x], not both extension.exists() != value.exists()
txt-1 error VisionPrescription.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 VisionPrescription.text.div The narrative SHALL have some non-whitespace content htmlChecks()

 

Other representations of profile: CSV, Excel, Schematron