Healthcare Financial Services IG Edition 1
0.3.0 - ci-build 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-06-23 Computable Name: NphiesVisionPrescription

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

Nphies VisionPrescription Profile

Usage:

Formal Views of Profile Content

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

This structure is derived from VisionPrescription

NameFlagsCard.TypeDescription & Constraintsdoco
.. VisionPrescription VisionPrescription
... 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 S 0..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
.... 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
NameFlagsCard.TypeDescription & Constraintsdoco
.. VisionPrescription 0..* VisionPrescription Prescription for vision correction products for a patient
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: 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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... id Σ 1..1 id Logical id of this artifact
Max Length:64
... meta Σ 1..1 Meta Metadata about the resource
ele-1: All FHIR elements must have a @value or children
.... profile Σ 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to
ele-1: All FHIR elements must have a @value or children
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... identifier S 0..1 DP_Identifier_A Business Identifier for vision prescription
ele-1: All FHIR elements must have a @value or children
... status ?!Σ 1..1 DP_code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.


ele-1: All FHIR elements must have a @value or children
Required Pattern: active
... created Σ 1..1 DP_dateTime Response creation date
ele-1: All FHIR elements must have a @value or children
... patient Σ 1..1 DP_Reference_1or2a(Nphies Patient) Who prescription is for
ele-1: All FHIR elements must have a @value or children
.... reference SΣC 0..1 string Literal reference, Relative, internal or absolute URL
ele-1: All FHIR elements must have a @value or children
Max Length:250
.... identifier SΣ 0..1 Identifier Logical reference, when literal reference is not known
ele-1: All FHIR elements must have a @value or children
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .


ele-1: All FHIR elements must have a @value or children
..... type Σ 1..1 DP_CodeableConcept Description of identifier
Binding: Patient Identifier Type (required)
ele-1: All FHIR elements must have a @value or children
..... system Σ 1..1 DP_uri The namespace for the identifier value
ele-1: All FHIR elements must have a @value or children
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string The value that is unique
ele-1: All FHIR elements must have a @value or children
Example General: 123456
Max Length:50
.... display Σ 0..1 string Text alternative for the resource
ele-1: All FHIR elements must have a @value or children
Max Length:200
... dateWritten Σ 1..1 DP_dateTime When prescription was authorized
ele-1: All FHIR elements must have a @value or children
... prescriber Σ 1..1 DP_Reference_1or4(Nphies Practitioner) Who authorized the vision prescription
ele-1: All FHIR elements must have a @value or children
... lensSpecification Σ 1..* BackboneElement Vision lens authorization
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... product Σ 1..1 DP_CodeableConcept Product to be supplied
Binding: Lens Type (required)
ele-1: All FHIR elements must have a @value or children
.... eye Σ 1..1 DP_code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.


ele-1: All FHIR elements must have a @value or children
.... sphere S 0..1 DP_decimal Power of the lens
ele-1: All FHIR elements must have a @value or children
.... cylinder S 0..1 DP_decimal Lens power for astigmatism
ele-1: All FHIR elements must have a @value or children
.... axis S 0..1 DP_integer Lens meridian which contain no power for astigmatism
ele-1: All FHIR elements must have a @value or children
.... prism S 0..* BackboneElement Eye alignment compensation
ele-1: All FHIR elements must have a @value or children
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... amount 1..1 DP_decimal Amount of adjustment
ele-1: All FHIR elements must have a @value or children
..... base 1..1 DP_code up | down | in | out
Binding: VisionBase (required): A coded concept listing the base codes.


ele-1: All FHIR elements must have a @value or children
.... add S 0..1 DP_decimal Added power for multifocal levels
ele-1: All FHIR elements must have a @value or children
.... power S 0..1 DP_decimal Contact lens power
ele-1: All FHIR elements must have a @value or children
.... backCurve S 0..1 DP_decimal Contact lens back curvature
ele-1: All FHIR elements must have a @value or children
.... diameter S 0..1 DP_decimal Contact lens diameter
ele-1: All FHIR elements must have a @value or children
.... duration S 0..1 DP_SimpleQuantity_1 Lens wear duration
ele-1: All FHIR elements must have a @value or children
.... color S 0..1 DP_string Color required
ele-1: All FHIR elements must have a @value or children
.... brand S 0..1 DP_string Brand required
ele-1: All FHIR elements must have a @value or children
.... note S 0..* DP_Annotation Notes for coatings
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
VisionPrescription.statusrequiredPattern: 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
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()
NameFlagsCard.TypeDescription & Constraintsdoco
.. VisionPrescription 0..* VisionPrescription Prescription for vision correction products for a patient
... 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
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier S 0..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 Σ 1..* BackboneElement Vision lens authorization
.... 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: 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
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 & Constraintsdoco
.. VisionPrescription VisionPrescription
... 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 S 0..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
.... 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

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. VisionPrescription 0..* VisionPrescription Prescription for vision correction products for a patient
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: 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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... id Σ 1..1 id Logical id of this artifact
Max Length:64
... meta Σ 1..1 Meta Metadata about the resource
ele-1: All FHIR elements must have a @value or children
.... profile Σ 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to
ele-1: All FHIR elements must have a @value or children
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... identifier S 0..1 DP_Identifier_A Business Identifier for vision prescription
ele-1: All FHIR elements must have a @value or children
... status ?!Σ 1..1 DP_code active | cancelled | draft | entered-in-error
Binding: FinancialResourceStatusCodes (required): A code specifying the state of the resource instance.


ele-1: All FHIR elements must have a @value or children
Required Pattern: active
... created Σ 1..1 DP_dateTime Response creation date
ele-1: All FHIR elements must have a @value or children
... patient Σ 1..1 DP_Reference_1or2a(Nphies Patient) Who prescription is for
ele-1: All FHIR elements must have a @value or children
.... reference SΣC 0..1 string Literal reference, Relative, internal or absolute URL
ele-1: All FHIR elements must have a @value or children
Max Length:250
.... identifier SΣ 0..1 Identifier Logical reference, when literal reference is not known
ele-1: All FHIR elements must have a @value or children
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .


ele-1: All FHIR elements must have a @value or children
..... type Σ 1..1 DP_CodeableConcept Description of identifier
Binding: Patient Identifier Type (required)
ele-1: All FHIR elements must have a @value or children
..... system Σ 1..1 DP_uri The namespace for the identifier value
ele-1: All FHIR elements must have a @value or children
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string The value that is unique
ele-1: All FHIR elements must have a @value or children
Example General: 123456
Max Length:50
.... display Σ 0..1 string Text alternative for the resource
ele-1: All FHIR elements must have a @value or children
Max Length:200
... dateWritten Σ 1..1 DP_dateTime When prescription was authorized
ele-1: All FHIR elements must have a @value or children
... prescriber Σ 1..1 DP_Reference_1or4(Nphies Practitioner) Who authorized the vision prescription
ele-1: All FHIR elements must have a @value or children
... lensSpecification Σ 1..* BackboneElement Vision lens authorization
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... product Σ 1..1 DP_CodeableConcept Product to be supplied
Binding: Lens Type (required)
ele-1: All FHIR elements must have a @value or children
.... eye Σ 1..1 DP_code right | left
Binding: VisionEyes (required): A coded concept listing the eye codes.


ele-1: All FHIR elements must have a @value or children
.... sphere S 0..1 DP_decimal Power of the lens
ele-1: All FHIR elements must have a @value or children
.... cylinder S 0..1 DP_decimal Lens power for astigmatism
ele-1: All FHIR elements must have a @value or children
.... axis S 0..1 DP_integer Lens meridian which contain no power for astigmatism
ele-1: All FHIR elements must have a @value or children
.... prism S 0..* BackboneElement Eye alignment compensation
ele-1: All FHIR elements must have a @value or children
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... amount 1..1 DP_decimal Amount of adjustment
ele-1: All FHIR elements must have a @value or children
..... base 1..1 DP_code up | down | in | out
Binding: VisionBase (required): A coded concept listing the base codes.


ele-1: All FHIR elements must have a @value or children
.... add S 0..1 DP_decimal Added power for multifocal levels
ele-1: All FHIR elements must have a @value or children
.... power S 0..1 DP_decimal Contact lens power
ele-1: All FHIR elements must have a @value or children
.... backCurve S 0..1 DP_decimal Contact lens back curvature
ele-1: All FHIR elements must have a @value or children
.... diameter S 0..1 DP_decimal Contact lens diameter
ele-1: All FHIR elements must have a @value or children
.... duration S 0..1 DP_SimpleQuantity_1 Lens wear duration
ele-1: All FHIR elements must have a @value or children
.... color S 0..1 DP_string Color required
ele-1: All FHIR elements must have a @value or children
.... brand S 0..1 DP_string Brand required
ele-1: All FHIR elements must have a @value or children
.... note S 0..* DP_Annotation Notes for coatings
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
VisionPrescription.statusrequiredPattern: 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
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()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. VisionPrescription 0..* VisionPrescription Prescription for vision correction products for a patient
... 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
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier S 0..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 Σ 1..* BackboneElement Vision lens authorization
.... 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: 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
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