Healthcare Financial Services IG Edition 1
0.3.0 - STU-Ballot Saudi Arabia flag

Healthcare Financial Services IG Edition 1 - Local Development build (v0.3.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: Nphies VisionPrescription

Official URL: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/vision-prescription Version: 0.3.0
Draft as of 2025-07-30 Computable Name: NphiesVisionPrescription

Copyright/Legal: Used by permission of HL7 International, all rights reserved Creative Commons License

Nphies VisionPrescription Profile

Usages:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription C 0..* VisionPrescription Prescription for vision correction products for a patient
Constraints: BV-00565
... id Σ 1..1 id Logical id of this artifact
Max Length:64
... meta Σ 1..1 Meta Metadata about the resource
.... profile Σ 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... identifier 1..1 DP_Identifier_A Business Identifier for vision prescription
... status ?!Σ 1..1 DP_code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.
Required Pattern: active
... created Σ 1..1 DP_dateTime Response creation date
... patient Σ 1..1 DP_Reference_1or2a(Nphies Patient) Who prescription is for
.... reference SΣC 0..1 string Literal reference, Relative, internal or absolute URL
Max Length:250
.... identifier SΣ 0..1 Identifier Logical reference, when literal reference is not known
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
..... type Σ 1..1 DP_CodeableConcept Description of identifier
Binding: Patient Identifier Type (required)
..... system Σ 1..1 DP_uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string The value that is unique
Example General: 123456
Max Length:50
.... display Σ 0..1 string Text alternative for the resource
Max Length:200
... dateWritten Σ 1..1 DP_dateTime When prescription was authorized
... prescriber Σ 1..1 DP_Reference_1or4(Nphies Practitioner) Who authorized the vision prescription
... lensSpecification ΣC 1..* BackboneElement Vision lens authorization
Constraints: BV-00398, BV-00399
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... product Σ 1..1 DP_CodeableConcept Product to be supplied
Binding: Lens Type (required)
.... eye Σ 1..1 DP_code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.
.... sphere S 0..1 DP_decimal Power of the lens
.... cylinder S 0..1 DP_decimal Lens power for astigmatism
.... axis S 0..1 DP_integer Lens meridian which contain no power for astigmatism
.... prism S 0..* BackboneElement Eye alignment compensation
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... amount 1..1 DP_decimal Amount of adjustment
..... base 1..1 DP_code up | down | in | out
Binding: VisionBase (required): A coded concept listing the base codes.
.... add S 0..1 DP_decimal Added power for multifocal levels
.... power S 0..1 DP_decimal Contact lens power
.... backCurve S 0..1 DP_decimal Contact lens back curvature
.... diameter S 0..1 DP_decimal Contact lens diameter
.... duration S 0..1 DP_SimpleQuantity_1 Lens wear duration
.... color S 0..1 DP_string Color required
.... brand S 0..1 DP_string Brand required
.... note S 0..* DP_Annotation Notes for coatings

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
VisionPrescription.statusrequiredPattern Value: active
http://hl7.org/fhir/ValueSet/fm-status|4.0.1
From the FHIR Standard
VisionPrescription.patient.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
VisionPrescription.patient.identifier.typerequiredPatientIdentifierType
http://nphies.sa/terminology/ValueSet/patient-identifier-type
From this IG
VisionPrescription.lensSpecification.productrequiredLensType(a valid code from Lens Type)
http://nphies.sa/terminology/ValueSet/lens-type
From this IG
VisionPrescription.lensSpecification.eyerequiredVisionEyes
http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1
From the FHIR Standard
VisionPrescription.lensSpecification.prism.baserequiredVisionBase
http://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
BV-00398errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.system.exists()
BV-00399errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.value.exists()
BV-00565errorVisionPrescriptionPrescriber display or (prescriber identifier and identifer type)SHALL be provided.
: prescriber.exists() implies (prescriber.display.exists() or (prescriber.identifier.exists() and prescriber.type.exists()))
dom-2errorVisionPrescriptionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorVisionPrescriptionIf 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-4errorVisionPrescriptionIf 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-5errorVisionPrescriptionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceVisionPrescriptionA 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 VisionPrescription

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription C 0..* VisionPrescription Prescription for vision correction products for a patient
Constraints: BV-00565
... id 1..1 id Logical id of this artifact
Max Length:64
... meta 1..1 Meta Metadata about the resource
.... profile 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to
... identifier 1..1 DP_Identifier_A Business Identifier for vision prescription
... created 1..1 DP_dateTime Response creation date
... patient 1..1 DP_Reference_1or2a(Nphies Patient) Who prescription is for
.... identifier
..... type 1..1 DP_CodeableConcept Description of identifier
Binding: Patient Identifier Type (required)
... dateWritten 1..1 DP_dateTime When prescription was authorized
... prescriber 1..1 DP_Reference_1or4(Nphies Practitioner) Who authorized the vision prescription
... lensSpecification C 1..* BackboneElement Vision lens authorization
Constraints: BV-00398, BV-00399
.... product 1..1 DP_CodeableConcept Product to be supplied
Binding: Lens Type (required)
.... eye 1..1 DP_code right | left
.... sphere S 0..1 DP_decimal Power of the lens
.... cylinder S 0..1 DP_decimal Lens power for astigmatism
.... axis S 0..1 DP_integer Lens meridian which contain no power for astigmatism
.... prism S 0..* BackboneElement Eye alignment compensation
..... amount 1..1 DP_decimal Amount of adjustment
..... base 1..1 DP_code up | down | in | out
.... add S 0..1 DP_decimal Added power for multifocal levels
.... power S 0..1 DP_decimal Contact lens power
.... backCurve S 0..1 DP_decimal Contact lens back curvature
.... diameter S 0..1 DP_decimal Contact lens diameter
.... duration S 0..1 DP_SimpleQuantity_1 Lens wear duration
.... color S 0..1 DP_string Color required
.... brand S 0..1 DP_string Brand required
.... note S 0..* DP_Annotation Notes for coatings

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
VisionPrescription.patient.identifier.typerequiredPatientIdentifierType
http://nphies.sa/terminology/ValueSet/patient-identifier-type
From this IG
VisionPrescription.lensSpecification.productrequiredLensType(a valid code from Lens Type)
http://nphies.sa/terminology/ValueSet/lens-type
From this IG

Constraints

IdGradePath(s)DetailsRequirements
BV-00398errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.system.exists()
BV-00399errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.value.exists()
BV-00565errorVisionPrescriptionPrescriber display or (prescriber identifier and identifer type)SHALL be provided.
: prescriber.exists() implies (prescriber.display.exists() or (prescriber.identifier.exists() and prescriber.type.exists()))
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription C 0..* VisionPrescription Prescription for vision correction products for a patient
Constraints: BV-00565
... id Σ 1..1 id Logical id of this artifact
Max Length:64
... meta Σ 1..1 Meta Metadata about the resource
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... 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 Σ 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (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
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier 1..1 DP_Identifier_A Business Identifier for vision prescription
... status ?!Σ 1..1 DP_code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.
Required Pattern: active
... created Σ 1..1 DP_dateTime Response creation date
... patient Σ 1..1 DP_Reference_1or2a(Nphies Patient) Who prescription is for
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference SΣC 0..1 string Literal reference, Relative, internal or absolute URL
Max Length:250
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier SΣ 0..1 Identifier Logical reference, when literal reference is not known
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
..... type Σ 1..1 DP_CodeableConcept Description of identifier
Binding: Patient Identifier Type (required)
..... system Σ 1..1 DP_uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string The value that is unique
Example General: 123456
Max Length:50
..... period Σ 0..1 Period Time period when id is/was valid for use
..... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
.... display Σ 0..1 string Text alternative for the resource
Max Length:200
... encounter 0..1 Reference(Encounter) Created during encounter / admission / stay
... dateWritten Σ 1..1 DP_dateTime When prescription was authorized
... prescriber Σ 1..1 DP_Reference_1or4(Nphies Practitioner) Who authorized the vision prescription
... lensSpecification ΣC 1..* BackboneElement Vision lens authorization
Constraints: BV-00398, BV-00399
.... 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
.... product Σ 1..1 DP_CodeableConcept Product to be supplied
Binding: Lens Type (required)
.... eye Σ 1..1 DP_code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.
.... sphere S 0..1 DP_decimal Power of the lens
.... cylinder S 0..1 DP_decimal Lens power for astigmatism
.... axis S 0..1 DP_integer Lens meridian which contain no power for astigmatism
.... prism S 0..* BackboneElement Eye alignment compensation
..... 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
..... amount 1..1 DP_decimal Amount of adjustment
..... base 1..1 DP_code up | down | in | out
Binding: VisionBase (required): A coded concept listing the base codes.
.... add S 0..1 DP_decimal Added power for multifocal levels
.... power S 0..1 DP_decimal Contact lens power
.... backCurve S 0..1 DP_decimal Contact lens back curvature
.... diameter S 0..1 DP_decimal Contact lens diameter
.... duration S 0..1 DP_SimpleQuantity_1 Lens wear duration
.... color S 0..1 DP_string Color required
.... brand S 0..1 DP_string Brand required
.... note S 0..* DP_Annotation Notes for coatings

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
VisionPrescription.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
From the FHIR Standard
VisionPrescription.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
From the FHIR Standard
VisionPrescription.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
VisionPrescription.statusrequiredPattern Value: active
http://hl7.org/fhir/ValueSet/fm-status|4.0.1
From the FHIR Standard
VisionPrescription.patient.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
VisionPrescription.patient.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
VisionPrescription.patient.identifier.typerequiredPatientIdentifierType
http://nphies.sa/terminology/ValueSet/patient-identifier-type
From this IG
VisionPrescription.lensSpecification.productrequiredLensType(a valid code from Lens Type)
http://nphies.sa/terminology/ValueSet/lens-type
From this IG
VisionPrescription.lensSpecification.eyerequiredVisionEyes
http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1
From the FHIR Standard
VisionPrescription.lensSpecification.prism.baserequiredVisionBase
http://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
BV-00398errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.system.exists()
BV-00399errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.value.exists()
BV-00565errorVisionPrescriptionPrescriber display or (prescriber identifier and identifer type)SHALL be provided.
: prescriber.exists() implies (prescriber.display.exists() or (prescriber.identifier.exists() and prescriber.type.exists()))
dom-2errorVisionPrescriptionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorVisionPrescriptionIf 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-4errorVisionPrescriptionIf 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-5errorVisionPrescriptionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceVisionPrescriptionA 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()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription C 0..* VisionPrescription Prescription for vision correction products for a patient
Constraints: BV-00565
... id Σ 1..1 id Logical id of this artifact
Max Length:64
... meta Σ 1..1 Meta Metadata about the resource
.... profile Σ 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... identifier 1..1 DP_Identifier_A Business Identifier for vision prescription
... status ?!Σ 1..1 DP_code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.
Required Pattern: active
... created Σ 1..1 DP_dateTime Response creation date
... patient Σ 1..1 DP_Reference_1or2a(Nphies Patient) Who prescription is for
.... reference SΣC 0..1 string Literal reference, Relative, internal or absolute URL
Max Length:250
.... identifier SΣ 0..1 Identifier Logical reference, when literal reference is not known
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
..... type Σ 1..1 DP_CodeableConcept Description of identifier
Binding: Patient Identifier Type (required)
..... system Σ 1..1 DP_uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string The value that is unique
Example General: 123456
Max Length:50
.... display Σ 0..1 string Text alternative for the resource
Max Length:200
... dateWritten Σ 1..1 DP_dateTime When prescription was authorized
... prescriber Σ 1..1 DP_Reference_1or4(Nphies Practitioner) Who authorized the vision prescription
... lensSpecification ΣC 1..* BackboneElement Vision lens authorization
Constraints: BV-00398, BV-00399
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... product Σ 1..1 DP_CodeableConcept Product to be supplied
Binding: Lens Type (required)
.... eye Σ 1..1 DP_code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.
.... sphere S 0..1 DP_decimal Power of the lens
.... cylinder S 0..1 DP_decimal Lens power for astigmatism
.... axis S 0..1 DP_integer Lens meridian which contain no power for astigmatism
.... prism S 0..* BackboneElement Eye alignment compensation
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... amount 1..1 DP_decimal Amount of adjustment
..... base 1..1 DP_code up | down | in | out
Binding: VisionBase (required): A coded concept listing the base codes.
.... add S 0..1 DP_decimal Added power for multifocal levels
.... power S 0..1 DP_decimal Contact lens power
.... backCurve S 0..1 DP_decimal Contact lens back curvature
.... diameter S 0..1 DP_decimal Contact lens diameter
.... duration S 0..1 DP_SimpleQuantity_1 Lens wear duration
.... color S 0..1 DP_string Color required
.... brand S 0..1 DP_string Brand required
.... note S 0..* DP_Annotation Notes for coatings

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
VisionPrescription.statusrequiredPattern Value: active
http://hl7.org/fhir/ValueSet/fm-status|4.0.1
From the FHIR Standard
VisionPrescription.patient.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
VisionPrescription.patient.identifier.typerequiredPatientIdentifierType
http://nphies.sa/terminology/ValueSet/patient-identifier-type
From this IG
VisionPrescription.lensSpecification.productrequiredLensType(a valid code from Lens Type)
http://nphies.sa/terminology/ValueSet/lens-type
From this IG
VisionPrescription.lensSpecification.eyerequiredVisionEyes
http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1
From the FHIR Standard
VisionPrescription.lensSpecification.prism.baserequiredVisionBase
http://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
BV-00398errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.system.exists()
BV-00399errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.value.exists()
BV-00565errorVisionPrescriptionPrescriber display or (prescriber identifier and identifer type)SHALL be provided.
: prescriber.exists() implies (prescriber.display.exists() or (prescriber.identifier.exists() and prescriber.type.exists()))
dom-2errorVisionPrescriptionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorVisionPrescriptionIf 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-4errorVisionPrescriptionIf 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-5errorVisionPrescriptionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceVisionPrescriptionA 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 VisionPrescription

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription C 0..* VisionPrescription Prescription for vision correction products for a patient
Constraints: BV-00565
... id 1..1 id Logical id of this artifact
Max Length:64
... meta 1..1 Meta Metadata about the resource
.... profile 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to
... identifier 1..1 DP_Identifier_A Business Identifier for vision prescription
... created 1..1 DP_dateTime Response creation date
... patient 1..1 DP_Reference_1or2a(Nphies Patient) Who prescription is for
.... identifier
..... type 1..1 DP_CodeableConcept Description of identifier
Binding: Patient Identifier Type (required)
... dateWritten 1..1 DP_dateTime When prescription was authorized
... prescriber 1..1 DP_Reference_1or4(Nphies Practitioner) Who authorized the vision prescription
... lensSpecification C 1..* BackboneElement Vision lens authorization
Constraints: BV-00398, BV-00399
.... product 1..1 DP_CodeableConcept Product to be supplied
Binding: Lens Type (required)
.... eye 1..1 DP_code right | left
.... sphere S 0..1 DP_decimal Power of the lens
.... cylinder S 0..1 DP_decimal Lens power for astigmatism
.... axis S 0..1 DP_integer Lens meridian which contain no power for astigmatism
.... prism S 0..* BackboneElement Eye alignment compensation
..... amount 1..1 DP_decimal Amount of adjustment
..... base 1..1 DP_code up | down | in | out
.... add S 0..1 DP_decimal Added power for multifocal levels
.... power S 0..1 DP_decimal Contact lens power
.... backCurve S 0..1 DP_decimal Contact lens back curvature
.... diameter S 0..1 DP_decimal Contact lens diameter
.... duration S 0..1 DP_SimpleQuantity_1 Lens wear duration
.... color S 0..1 DP_string Color required
.... brand S 0..1 DP_string Brand required
.... note S 0..* DP_Annotation Notes for coatings

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
VisionPrescription.patient.identifier.typerequiredPatientIdentifierType
http://nphies.sa/terminology/ValueSet/patient-identifier-type
From this IG
VisionPrescription.lensSpecification.productrequiredLensType(a valid code from Lens Type)
http://nphies.sa/terminology/ValueSet/lens-type
From this IG

Constraints

IdGradePath(s)DetailsRequirements
BV-00398errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.system.exists()
BV-00399errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.value.exists()
BV-00565errorVisionPrescriptionPrescriber display or (prescriber identifier and identifer type)SHALL be provided.
: prescriber.exists() implies (prescriber.display.exists() or (prescriber.identifier.exists() and prescriber.type.exists()))

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. VisionPrescription C 0..* VisionPrescription Prescription for vision correction products for a patient
Constraints: BV-00565
... id Σ 1..1 id Logical id of this artifact
Max Length:64
... meta Σ 1..1 Meta Metadata about the resource
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... 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 Σ 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (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
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier 1..1 DP_Identifier_A Business Identifier for vision prescription
... status ?!Σ 1..1 DP_code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.
Required Pattern: active
... created Σ 1..1 DP_dateTime Response creation date
... patient Σ 1..1 DP_Reference_1or2a(Nphies Patient) Who prescription is for
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference SΣC 0..1 string Literal reference, Relative, internal or absolute URL
Max Length:250
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier SΣ 0..1 Identifier Logical reference, when literal reference is not known
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
..... type Σ 1..1 DP_CodeableConcept Description of identifier
Binding: Patient Identifier Type (required)
..... system Σ 1..1 DP_uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string The value that is unique
Example General: 123456
Max Length:50
..... period Σ 0..1 Period Time period when id is/was valid for use
..... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
.... display Σ 0..1 string Text alternative for the resource
Max Length:200
... encounter 0..1 Reference(Encounter) Created during encounter / admission / stay
... dateWritten Σ 1..1 DP_dateTime When prescription was authorized
... prescriber Σ 1..1 DP_Reference_1or4(Nphies Practitioner) Who authorized the vision prescription
... lensSpecification ΣC 1..* BackboneElement Vision lens authorization
Constraints: BV-00398, BV-00399
.... 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
.... product Σ 1..1 DP_CodeableConcept Product to be supplied
Binding: Lens Type (required)
.... eye Σ 1..1 DP_code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.
.... sphere S 0..1 DP_decimal Power of the lens
.... cylinder S 0..1 DP_decimal Lens power for astigmatism
.... axis S 0..1 DP_integer Lens meridian which contain no power for astigmatism
.... prism S 0..* BackboneElement Eye alignment compensation
..... 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
..... amount 1..1 DP_decimal Amount of adjustment
..... base 1..1 DP_code up | down | in | out
Binding: VisionBase (required): A coded concept listing the base codes.
.... add S 0..1 DP_decimal Added power for multifocal levels
.... power S 0..1 DP_decimal Contact lens power
.... backCurve S 0..1 DP_decimal Contact lens back curvature
.... diameter S 0..1 DP_decimal Contact lens diameter
.... duration S 0..1 DP_SimpleQuantity_1 Lens wear duration
.... color S 0..1 DP_string Color required
.... brand S 0..1 DP_string Brand required
.... note S 0..* DP_Annotation Notes for coatings

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
VisionPrescription.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
From the FHIR Standard
VisionPrescription.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
From the FHIR Standard
VisionPrescription.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
VisionPrescription.statusrequiredPattern Value: active
http://hl7.org/fhir/ValueSet/fm-status|4.0.1
From the FHIR Standard
VisionPrescription.patient.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
VisionPrescription.patient.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
VisionPrescription.patient.identifier.typerequiredPatientIdentifierType
http://nphies.sa/terminology/ValueSet/patient-identifier-type
From this IG
VisionPrescription.lensSpecification.productrequiredLensType(a valid code from Lens Type)
http://nphies.sa/terminology/ValueSet/lens-type
From this IG
VisionPrescription.lensSpecification.eyerequiredVisionEyes
http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1
From the FHIR Standard
VisionPrescription.lensSpecification.prism.baserequiredVisionBase
http://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
BV-00398errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.system.exists()
BV-00399errorVisionPrescription.lensSpecificationVisionPrescription lensSpecification duration system is not provided.
: duration.exists() implies duration.value.exists()
BV-00565errorVisionPrescriptionPrescriber display or (prescriber identifier and identifer type)SHALL be provided.
: prescriber.exists() implies (prescriber.display.exists() or (prescriber.identifier.exists() and prescriber.type.exists()))
dom-2errorVisionPrescriptionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorVisionPrescriptionIf 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-4errorVisionPrescriptionIf 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-5errorVisionPrescriptionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceVisionPrescriptionA 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()

 

Other representations of profile: CSV, Excel, Schematron