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
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:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from VisionPrescription
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
VisionPrescription | |||
![]() ![]() ![]() |
1..1 | id | Logical id of this artifact Max Length:64 | |
![]() ![]() ![]() |
1..1 | Meta | Metadata about the resource | |
![]() ![]() ![]() ![]() |
1..* | DP_canonical(StructureDefinition) | Profiles this resource claims to conform to | |
![]() ![]() ![]() |
S | 0..1 | DP_Identifier_A | Business Identifier for vision prescription |
![]() ![]() ![]() |
1..1 | DP_code | active | cancelled | draft | entered-in-error Required Pattern: active | |
![]() ![]() ![]() |
1..1 | DP_dateTime | Response creation date | |
![]() ![]() ![]() |
1..1 | DP_Reference_1or2a(Nphies Patient) | Who prescription is for | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_CodeableConcept | Description of identifier Binding: Patient Identifier Type (required) | |
![]() ![]() ![]() |
1..1 | DP_dateTime | When prescription was authorized | |
![]() ![]() ![]() |
1..1 | DP_Reference_1or4(Nphies Practitioner) | Who authorized the vision prescription | |
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
1..1 | DP_CodeableConcept | Product to be supplied Binding: Lens Type (required) | |
![]() ![]() ![]() ![]() |
1..1 | DP_code | right | left | |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Power of the lens |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Lens power for astigmatism |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_integer | Lens meridian which contain no power for astigmatism |
![]() ![]() ![]() ![]() |
S | 0..* | BackboneElement | Eye alignment compensation |
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_decimal | Amount of adjustment | |
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_code | up | down | in | out | |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Added power for multifocal levels |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens power |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens back curvature |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens diameter |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_SimpleQuantity_1 | Lens wear duration |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Color required |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Brand required |
![]() ![]() ![]() ![]() |
S | 0..* | DP_Annotation | Notes for coatings |
![]() |
Path | Conformance | ValueSet | URI |
VisionPrescription.patient.identifier.type | required | PatientIdentifierTypehttp://nphies.sa/terminology/ValueSet/patient-identifier-type from this IG | |
VisionPrescription.lensSpecification.product | required | LensType (a valid code from Lens Type)http://nphies.sa/terminology/ValueSet/lens-type from this IG |
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
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 | |
![]() ![]() ![]() |
Σ | 1..1 | id | Logical id of this artifact Max Length:64 |
![]() ![]() ![]() |
Σ | 1..1 | Meta | Metadata about the resource ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
Σ | 1..* | DP_canonical(StructureDefinition) | Profiles this resource claims to conform to ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
![]() ![]() ![]() |
S | 0..1 | DP_Identifier_A | Business Identifier for vision prescription ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() |
Σ | 1..1 | DP_dateTime | Response creation date ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
Σ | 1..1 | DP_Reference_1or2a(Nphies Patient) | Who prescription is for ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | Identifier | Logical reference, when literal reference is not known ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_CodeableConcept | Description of identifier Binding: Patient Identifier Type (required) ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() ![]() |
Σ | 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 |
![]() ![]() ![]() ![]() ![]() |
Σ | 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 |
![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource ele-1: All FHIR elements must have a @value or children Max Length:200 |
![]() ![]() ![]() |
Σ | 1..1 | DP_dateTime | When prescription was authorized ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
Σ | 1..1 | DP_Reference_1or4(Nphies Practitioner) | Who authorized the vision prescription ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
Σ | 1..* | BackboneElement | Vision lens authorization ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_CodeableConcept | Product to be supplied Binding: Lens Type (required) ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
Σ | 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 |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Power of the lens ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Lens power for astigmatism ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_integer | Lens meridian which contain no power for astigmatism ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..* | BackboneElement | Eye alignment compensation ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_decimal | Amount of adjustment ele-1: All FHIR elements must have a @value or children | |
![]() ![]() ![]() ![]() ![]() |
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 | |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Added power for multifocal levels ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens power ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens back curvature ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens diameter ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_SimpleQuantity_1 | Lens wear duration ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Color required ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Brand required ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..* | DP_Annotation | Notes for coatings ele-1: All FHIR elements must have a @value or children |
![]() |
Path | Conformance | ValueSet / Code | URI |
VisionPrescription.status | required | Pattern: activehttp://hl7.org/fhir/ValueSet/fm-status|4.0.1 from the FHIR Standard | |
VisionPrescription.patient.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use|4.0.1 from the FHIR Standard | |
VisionPrescription.patient.identifier.type | required | PatientIdentifierTypehttp://nphies.sa/terminology/ValueSet/patient-identifier-type from this IG | |
VisionPrescription.lensSpecification.product | required | LensType (a valid code from Lens Type)http://nphies.sa/terminology/ValueSet/lens-type from this IG | |
VisionPrescription.lensSpecification.eye | required | VisionEyeshttp://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1 from the FHIR Standard | |
VisionPrescription.lensSpecification.prism.base | required | VisionBasehttp://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
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().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-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 | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
Name | Flags | Card. | Type | Description & Constraints![]() | ||||
---|---|---|---|---|---|---|---|---|
![]() ![]() |
0..* | VisionPrescription | Prescription for vision correction products for a patient | |||||
![]() ![]() ![]() |
Σ | 1..1 | id | Logical id of this artifact Max Length:64 | ||||
![]() ![]() ![]() |
Σ | 1..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]() ![]() |
Σ | 1..* | DP_canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||
![]() ![]() ![]() ![]() |
Σ | 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". | ||||
![]() ![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
![]() ![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
S | 0..1 | DP_Identifier_A | Business Identifier for vision prescription | ||||
![]() ![]() ![]() |
?!Σ | 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 | ||||
![]() ![]() ![]() |
Σ | 1..1 | DP_dateTime | Response creation date | ||||
![]() ![]() ![]() |
Σ | 1..1 | DP_Reference_1or2a(Nphies Patient) | Who prescription is for | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
SΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL Max Length:250 | ||||
![]() ![]() ![]() ![]() |
Σ | 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). | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_CodeableConcept | Description of identifier Binding: Patient Identifier Type (required) | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | string | The value that is unique Example General: 123456 Max Length:50 | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource Max Length:200 | ||||
![]() ![]() ![]() |
0..1 | Reference(Encounter) | Created during encounter / admission / stay | |||||
![]() ![]() ![]() |
Σ | 1..1 | DP_dateTime | When prescription was authorized | ||||
![]() ![]() ![]() |
Σ | 1..1 | DP_Reference_1or4(Nphies Practitioner) | Who authorized the vision prescription | ||||
![]() ![]() ![]() |
Σ | 1..* | BackboneElement | Vision lens authorization | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_CodeableConcept | Product to be supplied Binding: Lens Type (required) | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_code | right | left Binding: VisionEyes (required): A coded concept listing the eye codes. | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Power of the lens | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Lens power for astigmatism | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_integer | Lens meridian which contain no power for astigmatism | ||||
![]() ![]() ![]() ![]() |
S | 0..* | BackboneElement | Eye alignment compensation | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_decimal | Amount of adjustment | |||||
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_code | up | down | in | out Binding: VisionBase (required): A coded concept listing the base codes. | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Added power for multifocal levels | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens power | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens back curvature | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens diameter | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_SimpleQuantity_1 | Lens wear duration | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Color required | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Brand required | ||||
![]() ![]() ![]() ![]() |
S | 0..* | DP_Annotation | Notes for coatings | ||||
![]() |
Path | Conformance | ValueSet / Code | URI | |||
VisionPrescription.meta.security | extensible | All Security Labelshttp://hl7.org/fhir/ValueSet/security-labels from the FHIR Standard | ||||
VisionPrescription.meta.tag | example | CommonTagshttp://hl7.org/fhir/ValueSet/common-tags from the FHIR Standard | ||||
VisionPrescription.language | preferred | CommonLanguageshttp://hl7.org/fhir/ValueSet/languages from the FHIR Standard
| ||||
VisionPrescription.status | required | Pattern: activehttp://hl7.org/fhir/ValueSet/fm-status|4.0.1 from the FHIR Standard | ||||
VisionPrescription.patient.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-types from the FHIR Standard | ||||
VisionPrescription.patient.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use|4.0.1 from the FHIR Standard | ||||
VisionPrescription.patient.identifier.type | required | PatientIdentifierTypehttp://nphies.sa/terminology/ValueSet/patient-identifier-type from this IG | ||||
VisionPrescription.lensSpecification.product | required | LensType (a valid code from Lens Type)http://nphies.sa/terminology/ValueSet/lens-type from this IG | ||||
VisionPrescription.lensSpecification.eye | required | VisionEyeshttp://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1 from the FHIR Standard | ||||
VisionPrescription.lensSpecification.prism.base | required | VisionBasehttp://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
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().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-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 | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
This structure is derived from VisionPrescription
Summary
Mandatory: 3 elements
Must-Support: 13 elements
Structures
This structure refers to these other structures:
Differential View
This structure is derived from VisionPrescription
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
VisionPrescription | |||
![]() ![]() ![]() |
1..1 | id | Logical id of this artifact Max Length:64 | |
![]() ![]() ![]() |
1..1 | Meta | Metadata about the resource | |
![]() ![]() ![]() ![]() |
1..* | DP_canonical(StructureDefinition) | Profiles this resource claims to conform to | |
![]() ![]() ![]() |
S | 0..1 | DP_Identifier_A | Business Identifier for vision prescription |
![]() ![]() ![]() |
1..1 | DP_code | active | cancelled | draft | entered-in-error Required Pattern: active | |
![]() ![]() ![]() |
1..1 | DP_dateTime | Response creation date | |
![]() ![]() ![]() |
1..1 | DP_Reference_1or2a(Nphies Patient) | Who prescription is for | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_CodeableConcept | Description of identifier Binding: Patient Identifier Type (required) | |
![]() ![]() ![]() |
1..1 | DP_dateTime | When prescription was authorized | |
![]() ![]() ![]() |
1..1 | DP_Reference_1or4(Nphies Practitioner) | Who authorized the vision prescription | |
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
1..1 | DP_CodeableConcept | Product to be supplied Binding: Lens Type (required) | |
![]() ![]() ![]() ![]() |
1..1 | DP_code | right | left | |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Power of the lens |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Lens power for astigmatism |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_integer | Lens meridian which contain no power for astigmatism |
![]() ![]() ![]() ![]() |
S | 0..* | BackboneElement | Eye alignment compensation |
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_decimal | Amount of adjustment | |
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_code | up | down | in | out | |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Added power for multifocal levels |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens power |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens back curvature |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens diameter |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_SimpleQuantity_1 | Lens wear duration |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Color required |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Brand required |
![]() ![]() ![]() ![]() |
S | 0..* | DP_Annotation | Notes for coatings |
![]() |
Path | Conformance | ValueSet | URI |
VisionPrescription.patient.identifier.type | required | PatientIdentifierTypehttp://nphies.sa/terminology/ValueSet/patient-identifier-type from this IG | |
VisionPrescription.lensSpecification.product | required | LensType (a valid code from Lens Type)http://nphies.sa/terminology/ValueSet/lens-type from this IG |
Key Elements View
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
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 | |
![]() ![]() ![]() |
Σ | 1..1 | id | Logical id of this artifact Max Length:64 |
![]() ![]() ![]() |
Σ | 1..1 | Meta | Metadata about the resource ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
Σ | 1..* | DP_canonical(StructureDefinition) | Profiles this resource claims to conform to ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
![]() ![]() ![]() |
S | 0..1 | DP_Identifier_A | Business Identifier for vision prescription ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() |
Σ | 1..1 | DP_dateTime | Response creation date ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
Σ | 1..1 | DP_Reference_1or2a(Nphies Patient) | Who prescription is for ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() |
SΣ | 0..1 | Identifier | Logical reference, when literal reference is not known ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_CodeableConcept | Description of identifier Binding: Patient Identifier Type (required) ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() ![]() |
Σ | 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 |
![]() ![]() ![]() ![]() ![]() |
Σ | 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 |
![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource ele-1: All FHIR elements must have a @value or children Max Length:200 |
![]() ![]() ![]() |
Σ | 1..1 | DP_dateTime | When prescription was authorized ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
Σ | 1..1 | DP_Reference_1or4(Nphies Practitioner) | Who authorized the vision prescription ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
Σ | 1..* | BackboneElement | Vision lens authorization ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_CodeableConcept | Product to be supplied Binding: Lens Type (required) ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
Σ | 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 |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Power of the lens ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Lens power for astigmatism ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_integer | Lens meridian which contain no power for astigmatism ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..* | BackboneElement | Eye alignment compensation ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_decimal | Amount of adjustment ele-1: All FHIR elements must have a @value or children | |
![]() ![]() ![]() ![]() ![]() |
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 | |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Added power for multifocal levels ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens power ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens back curvature ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens diameter ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_SimpleQuantity_1 | Lens wear duration ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Color required ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Brand required ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() ![]() |
S | 0..* | DP_Annotation | Notes for coatings ele-1: All FHIR elements must have a @value or children |
![]() |
Path | Conformance | ValueSet / Code | URI |
VisionPrescription.status | required | Pattern: activehttp://hl7.org/fhir/ValueSet/fm-status|4.0.1 from the FHIR Standard | |
VisionPrescription.patient.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use|4.0.1 from the FHIR Standard | |
VisionPrescription.patient.identifier.type | required | PatientIdentifierTypehttp://nphies.sa/terminology/ValueSet/patient-identifier-type from this IG | |
VisionPrescription.lensSpecification.product | required | LensType (a valid code from Lens Type)http://nphies.sa/terminology/ValueSet/lens-type from this IG | |
VisionPrescription.lensSpecification.eye | required | VisionEyeshttp://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1 from the FHIR Standard | |
VisionPrescription.lensSpecification.prism.base | required | VisionBasehttp://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
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().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-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 | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints![]() | ||||
---|---|---|---|---|---|---|---|---|
![]() ![]() |
0..* | VisionPrescription | Prescription for vision correction products for a patient | |||||
![]() ![]() ![]() |
Σ | 1..1 | id | Logical id of this artifact Max Length:64 | ||||
![]() ![]() ![]() |
Σ | 1..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]() ![]() |
Σ | 1..* | DP_canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]() ![]() |
Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||
![]() ![]() ![]() ![]() |
Σ | 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". | ||||
![]() ![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
![]() ![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
S | 0..1 | DP_Identifier_A | Business Identifier for vision prescription | ||||
![]() ![]() ![]() |
?!Σ | 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 | ||||
![]() ![]() ![]() |
Σ | 1..1 | DP_dateTime | Response creation date | ||||
![]() ![]() ![]() |
Σ | 1..1 | DP_Reference_1or2a(Nphies Patient) | Who prescription is for | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
SΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL Max Length:250 | ||||
![]() ![]() ![]() ![]() |
Σ | 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). | ||||
![]() ![]() ![]() ![]() |
SΣ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_CodeableConcept | Description of identifier Binding: Patient Identifier Type (required) | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 1..1 | string | The value that is unique Example General: 123456 Max Length:50 | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource Max Length:200 | ||||
![]() ![]() ![]() |
0..1 | Reference(Encounter) | Created during encounter / admission / stay | |||||
![]() ![]() ![]() |
Σ | 1..1 | DP_dateTime | When prescription was authorized | ||||
![]() ![]() ![]() |
Σ | 1..1 | DP_Reference_1or4(Nphies Practitioner) | Who authorized the vision prescription | ||||
![]() ![]() ![]() |
Σ | 1..* | BackboneElement | Vision lens authorization | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_CodeableConcept | Product to be supplied Binding: Lens Type (required) | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | DP_code | right | left Binding: VisionEyes (required): A coded concept listing the eye codes. | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Power of the lens | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Lens power for astigmatism | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_integer | Lens meridian which contain no power for astigmatism | ||||
![]() ![]() ![]() ![]() |
S | 0..* | BackboneElement | Eye alignment compensation | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_decimal | Amount of adjustment | |||||
![]() ![]() ![]() ![]() ![]() |
1..1 | DP_code | up | down | in | out Binding: VisionBase (required): A coded concept listing the base codes. | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Added power for multifocal levels | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens power | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens back curvature | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_decimal | Contact lens diameter | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_SimpleQuantity_1 | Lens wear duration | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Color required | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | DP_string | Brand required | ||||
![]() ![]() ![]() ![]() |
S | 0..* | DP_Annotation | Notes for coatings | ||||
![]() |
Path | Conformance | ValueSet / Code | URI | |||
VisionPrescription.meta.security | extensible | All Security Labelshttp://hl7.org/fhir/ValueSet/security-labels from the FHIR Standard | ||||
VisionPrescription.meta.tag | example | CommonTagshttp://hl7.org/fhir/ValueSet/common-tags from the FHIR Standard | ||||
VisionPrescription.language | preferred | CommonLanguageshttp://hl7.org/fhir/ValueSet/languages from the FHIR Standard
| ||||
VisionPrescription.status | required | Pattern: activehttp://hl7.org/fhir/ValueSet/fm-status|4.0.1 from the FHIR Standard | ||||
VisionPrescription.patient.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-types from the FHIR Standard | ||||
VisionPrescription.patient.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use|4.0.1 from the FHIR Standard | ||||
VisionPrescription.patient.identifier.type | required | PatientIdentifierTypehttp://nphies.sa/terminology/ValueSet/patient-identifier-type from this IG | ||||
VisionPrescription.lensSpecification.product | required | LensType (a valid code from Lens Type)http://nphies.sa/terminology/ValueSet/lens-type from this IG | ||||
VisionPrescription.lensSpecification.eye | required | VisionEyeshttp://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1 from the FHIR Standard | ||||
VisionPrescription.lensSpecification.prism.base | required | VisionBasehttp://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
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().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-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 | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
This structure is derived from VisionPrescription
Summary
Mandatory: 3 elements
Must-Support: 13 elements
Structures
This structure refers to these other structures:
Other representations of profile: CSV, Excel, Schematron