{ "description": "This profile defines an initial profile on the VisionPrescription resource to support coverage requirements discovery.", "_filename": "StructureDefinition-profile-visionprescription.json", "package_name": "hl7.fhir.us.davinci-crd", "date": "2024-09-26T14:59:51-04:00", "derivation": "constraint", "publisher": "HL7 International / Financial Management", "fhirVersion": "4.0.1", "jurisdiction": [ { "coding": [ { "code": "US", "system": "urn:iso:std:iso:3166" } ] } ], "name": "CRDVisionPrescription", "mapping": [ { "uri": "http://hl7.org/fhir/workflow", "name": "Workflow Pattern", "identity": "workflow" }, { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" }, { "uri": "http://hl7.org/fhir/fivews", "name": "FiveWs Pattern Mapping", "identity": "w5" }, { "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping", "identity": "v2" } ], "abstract": false, "type": "VisionPrescription", "experimental": "false", "resourceType": "StructureDefinition", "title": "CRD Vision Prescription", "package_version": "2.1.0-preview", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "fm" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "trial-use", "_valueCode": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom", "valueCanonical": "http://hl7.org/fhir/us/davinci-crd/ImplementationGuide/davinci-crd" } ] } } ], "snapshot": { "element": [ { "constraint": [ { "key": "dom-2", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "xpath": "not(parent::f:contained and f:contained)", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.contained.empty()" }, { "key": "dom-3", "human": "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", "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "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()" }, { "key": "dom-4", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" }, { "key": "dom-5", "human": "If a resource is contained in another resource, it SHALL NOT have a security label", "xpath": "not(exists(f:contained/*/f:meta/f:security))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.security.empty()" }, { "key": "dom-6", "human": "A resource should have narrative for robust management", "xpath": "exists(f:text/h:div)", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "warning", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", "valueBoolean": true }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." } ], "expression": "text.`div`.exists()" } ], "path": "VisionPrescription", "min": 0, "definition": "An authorization for the provision of glasses and/or contact lenses to a patient.", "isModifier": false, "short": "Prescription for vision correction products for a patient", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "Request", "identity": "workflow" }, { "map": "CombinedVisionRequest", "identity": "rim" } ], "max": "*", "id": "VisionPrescription", "base": { "max": "*", "min": 0, "path": "VisionPrescription" }, "isSummary": false }, { "path": "VisionPrescription.id", "min": 0, "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "isModifier": false, "short": "Logical id of this artifact", "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "id" } ] } ], "max": "1", "id": "VisionPrescription.id", "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", "base": { "max": "1", "min": 0, "path": "Resource.id" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.meta", "min": 0, "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", "isModifier": false, "short": "Metadata about the resource", "type": [ { "code": "Meta" } ], "max": "1", "id": "VisionPrescription.meta", "base": { "max": "1", "min": 0, "path": "Resource.meta" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.implicitRules", "min": 0, "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", "isModifier": true, "short": "A set of rules under which this content was created", "type": [ { "code": "uri" } ], "max": "1", "id": "VisionPrescription.implicitRules", "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", "base": { "max": "1", "min": 0, "path": "Resource.implicitRules" }, "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.language", "min": 0, "definition": "The base language in which the resource is written.", "isModifier": false, "short": "Language of the resource content", "type": [ { "code": "code" } ], "binding": { "strength": "preferred", "valueSet": "http://hl7.org/fhir/ValueSet/languages", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Language" } ], "description": "A human language." }, "max": "1", "id": "VisionPrescription.language", "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", "base": { "max": "1", "min": 0, "path": "Resource.language" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.text", "min": 0, "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", "isModifier": false, "short": "Text summary of the resource, for human interpretation", "mapping": [ { "map": "Act.text?", "identity": "rim" } ], "type": [ { "code": "Narrative" } ], "alias": [ "narrative", "html", "xhtml", "display" ], "max": "1", "id": "VisionPrescription.text", "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", "base": { "max": "1", "min": 0, "path": "DomainResource.text" }, "isSummary": false }, { "path": "VisionPrescription.contained", "min": 0, "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", "isModifier": false, "short": "Contained, inline Resources", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Resource" } ], "alias": [ "inline resources", "anonymous resources", "contained resources" ], "max": "*", "id": "VisionPrescription.contained", "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", "base": { "max": "*", "min": 0, "path": "DomainResource.contained" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "VisionPrescription.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "VisionPrescription.extension", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" }, { "key": "crd-ci-q1", "human": "Questionnaire is only allowed when doc-needed exists", "source": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information", "severity": "error", "expression": "extension.where(url='questionnaire').exists() implies extension.where(url = 'doc-needed').exists()" }, { "key": "crd-ci-q2", "human": "If covered is set to 'not-covered', then 'pa-needed' must not exist.", "source": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information", "severity": "error", "expression": "extension.where(url = 'covered' and value = 'not-covered').exists() implies extension.where(url = 'pa-needed').exists().not()" }, { "key": "crd-ci-q3", "human": "'info-needed' SHALL exist if and only if at least one of 'covered', 'pa-needed', or 'doc-needed' is set to 'conditional'.", "source": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information", "severity": "error", "expression": "extension.where((url = 'covered' or url = 'pa-needed' or url = 'doc-needed') and value = 'conditional').count() >= 1 implies extension.where(url = 'info-needed').exists()" }, { "key": "crd-ci-q4", "human": "If 'pa-needed' is 'satisfied', then 'Doc-purpose' can't be 'withpa'.", "source": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information", "severity": "error", "expression": "extension.where(url = 'pa-needed' and value = 'satisfied') and extension.where(url = 'doc-purpose').exists() implies extension.where(url = 'doc-purpose').all(value != 'withpa')" }, { "key": "crd-ci-q5", "human": "'satisfied-pa-id' must exist if and only if 'pa-needed' is set to 'satisfied'.", "source": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information", "severity": "error", "expression": "extension.where(url = 'pa-needed' and value = 'satisfied').exists() = extension.where(url = 'satisfied-pa-id').exists()" }, { "key": "crd-ci-q6", "human": "If 'info-needed' is Other, then reason must be specified", "source": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information", "severity": "error", "expression": "extension.where(url = 'info-needed' and value = 'Other').exists() implies extension.where(url = 'reason').exists()" }, { "key": "crd-ci-q7", "human": "If reason.coding is present and is not from the extensible value set, then reason.text must be present", "source": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information", "severity": "error", "expression": "extension.where(url = 'reason').empty() or extension.where(url = 'reason').value.text.exists() or extension.where(url = 'reason').value.memberOf('http://hl7.org/fhir/us/davinci-crd/ValueSet/coverageAssertionReasons')" } ], "path": "VisionPrescription.extension", "min": 0, "definition": "Indicates coverage information.", "isModifier": false, "short": "Coverage Info", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information" ] } ], "mustSupport": true, "sliceName": "Coverage-Information", "max": "*", "id": "VisionPrescription.extension:Coverage-Information", "condition": [ "ele-1" ], "base": { "max": "*", "min": 0, "path": "DomainResource.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "VisionPrescription.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "VisionPrescription.modifierExtension", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "DomainResource.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.identifier", "requirements": "Allows vision prescriptions to be distinguished and referenced.", "min": 0, "definition": "A unique identifier assigned to this vision prescription.", "isModifier": false, "short": "Business Identifier for vision prescription", "mapping": [ { "map": "Request.identifier", "identity": "workflow" }, { "map": "FiveWs.identifier", "identity": "w5" }, { "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number", "identity": "v2" }, { "map": "id", "identity": "rim" } ], "type": [ { "code": "Identifier" } ], "mustSupport": true, "max": "*", "id": "VisionPrescription.identifier", "base": { "max": "*", "min": 0, "path": "VisionPrescription.identifier" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.status", "requirements": "Need to track the status of the resource as 'draft' resources may undergo further edits while 'active' resources are immutable and may only have their status changed to 'cancelled'.", "min": 1, "definition": "The status of the resource instance.", "isModifier": true, "short": "active | cancelled | draft | entered-in-error", "mapping": [ { "map": "Request.status", "identity": "workflow" }, { "map": "FiveWs.status", "identity": "w5" }, { "map": "Act.status", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "VisionStatus" } ], "description": "A code specifying the state of the resource instance." }, "max": "1", "id": "VisionPrescription.status", "comment": "This will be 'draft' when using order-select or an initial order-sign, but may be 'active' or other values for order-sign representing edits to the order or for order-dispatch.", "example": [ { "label": "General", "valueCode": "draft" } ], "base": { "max": "1", "min": 1, "path": "VisionPrescription.status" }, "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.created", "requirements": "Need to record a timestamp for use by both the recipient and the issuer.", "min": 1, "definition": "The date this resource was created.", "isModifier": false, "short": "Response creation date", "type": [ { "code": "dateTime" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.created", "base": { "max": "1", "min": 1, "path": "VisionPrescription.created" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.patient", "requirements": "Needed to identify the patient for whom the vision prescription has been issued.", "min": 1, "definition": "A resource reference to the person to whom the vision prescription applies.", "isModifier": false, "short": "Who prescription is for", "mapping": [ { "map": "Request.subject", "identity": "workflow" }, { "map": "FiveWs.subject[x]", "identity": "w5" }, { "map": "PID-3-Patient ID List", "identity": "v2" }, { "map": "subject.role", "identity": "rim" }, { "map": "FiveWs.subject", "identity": "w5" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient" ] } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.patient", "base": { "max": "1", "min": 1, "path": "VisionPrescription.patient" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.encounter", "requirements": "Used in some jurisdictions to link clinical events to claim items.", "min": 0, "definition": "A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.", "isModifier": false, "short": "Created during encounter / admission / stay", "mapping": [ { "map": "Request.context", "identity": "workflow" }, { "map": "FiveWs.context", "identity": "w5" }, { "map": "PV1-19-Visit Number", "identity": "v2" }, { "map": "componentOf.patientEncounter", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter3.1", "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter6.1" ] } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.encounter", "comment": "potentially relevant for CRD in some situations.", "base": { "max": "1", "min": 0, "path": "VisionPrescription.encounter" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.dateWritten", "requirements": "Need to record a timestamp for use by both the recipient and the issuer.", "min": 1, "definition": "The date (and perhaps time) when the prescription was written.", "isModifier": false, "short": "When prescription was authorized", "mapping": [ { "map": "Request.authoredOn", "identity": "workflow" }, { "map": "FiveWs.recorded", "identity": "w5" }, { "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction", "identity": "v2" }, { "map": "author.time", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.dateWritten", "comment": "Jurisdictions determine the valid lifetime of a prescription. Typically vision prescriptions are valid for two years from the date written.", "base": { "max": "1", "min": 1, "path": "VisionPrescription.dateWritten" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.prescriber", "requirements": "Need to record the authorizing practitioner.", "min": 1, "definition": "The healthcare professional responsible for authorizing the prescription.", "isModifier": false, "short": "Who authorized the vision prescription", "mapping": [ { "map": "Request.requester", "identity": "workflow" }, { "map": "FiveWs.author", "identity": "w5" }, { "map": "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)", "identity": "v2" }, { "map": "author.role", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner", "http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole" ] } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.prescriber", "base": { "max": "1", "min": 1, "path": "VisionPrescription.prescriber" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification", "min": 1, "definition": "Contain the details of the individual lens specifications and serves as the authorization for the fullfillment by certified professionals.", "isModifier": false, "short": "Vision lens authorization", "mapping": [ { "map": "component.supplyEvent", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "mustSupport": true, "max": "*", "id": "VisionPrescription.lensSpecification", "base": { "max": "*", "min": 1, "path": "VisionPrescription.lensSpecification" }, "isSummary": true }, { "path": "VisionPrescription.lensSpecification.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "VisionPrescription.lensSpecification.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "VisionPrescription.lensSpecification.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "VisionPrescription.lensSpecification.extension", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "VisionPrescription.lensSpecification.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored even if unrecognized", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "VisionPrescription.lensSpecification.modifierExtension", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "BackboneElement.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.product", "requirements": "Need to identify whether glasses or contacts.", "min": 1, "definition": "Identifies the type of vision correction product which is required for the patient.", "isModifier": false, "short": "Product to be supplied", "mapping": [ { "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code", "identity": "v2" }, { "map": "consumable.role", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/vision-product", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "VisionProduct" } ], "description": "A coded concept describing the vision products." }, "max": "1", "id": "VisionPrescription.lensSpecification.product", "base": { "max": "1", "min": 1, "path": "VisionPrescription.lensSpecification.product" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.eye", "requirements": "Needed to identify which eye the lens specification applies to.", "min": 1, "definition": "The eye for which the lens specification applies.", "isModifier": false, "short": "right | left", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "VisionEyes" } ], "description": "A coded concept listing the eye codes." }, "max": "1", "id": "VisionPrescription.lensSpecification.eye", "comment": "May also appear as OD (oculus dexter) for the right eye and OS (oculus siniter) for the left eye.", "base": { "max": "1", "min": 1, "path": "VisionPrescription.lensSpecification.eye" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.sphere", "requirements": "Standard lens prescription measures.", "min": 0, "definition": "Lens power measured in dioptres (0.25 units).", "isModifier": false, "short": "Power of the lens", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.sphere", "comment": "The value is negative for near-sighted and positive for far sighted.\nOften insurance will not cover a lens with power between +75 and -75.", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.sphere" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.cylinder", "requirements": "Standard lens prescription measures.", "min": 0, "definition": "Power adjustment for astigmatism measured in dioptres (0.25 units).", "isModifier": false, "short": "Lens power for astigmatism", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.cylinder", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.cylinder" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.axis", "requirements": "Standard lens prescription measures.", "min": 0, "definition": "Adjustment for astigmatism measured in integer degrees.", "isModifier": false, "short": "Lens meridian which contain no power for astigmatism", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "integer" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.axis", "comment": "The limits are +180 and -180 degrees.", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.axis" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.prism", "requirements": "Standard lens prescription measures.", "min": 0, "definition": "Allows for adjustment on two axis.", "isModifier": false, "short": "Eye alignment compensation", "type": [ { "code": "BackboneElement" } ], "mustSupport": true, "max": "*", "id": "VisionPrescription.lensSpecification.prism", "base": { "max": "*", "min": 0, "path": "VisionPrescription.lensSpecification.prism" }, "isSummary": false }, { "path": "VisionPrescription.lensSpecification.prism.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "VisionPrescription.lensSpecification.prism.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "VisionPrescription.lensSpecification.prism.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "VisionPrescription.lensSpecification.prism.extension", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "VisionPrescription.lensSpecification.prism.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored even if unrecognized", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "VisionPrescription.lensSpecification.prism.modifierExtension", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "BackboneElement.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.prism.amount", "requirements": "Standard lens prescription measures.", "min": 1, "definition": "Amount of prism to compensate for eye alignment in fractional units.", "isModifier": false, "short": "Amount of adjustment", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.prism.amount", "base": { "max": "1", "min": 1, "path": "VisionPrescription.lensSpecification.prism.amount" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.prism.base", "requirements": "Standard lens prescription measures.", "min": 1, "definition": "The relative base, or reference lens edge, for the prism.", "isModifier": false, "short": "up | down | in | out", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "VisionBase" } ], "description": "A coded concept listing the base codes." }, "max": "1", "id": "VisionPrescription.lensSpecification.prism.base", "base": { "max": "1", "min": 1, "path": "VisionPrescription.lensSpecification.prism.base" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.add", "requirements": "Standard lens prescription measures.", "min": 0, "definition": "Power adjustment for multifocal lenses measured in dioptres (0.25 units).", "isModifier": false, "short": "Added power for multifocal levels", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.add", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.add" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.power", "requirements": "Standard contact lens prescription measures.", "min": 0, "definition": "Contact lens power measured in dioptres (0.25 units).", "isModifier": false, "short": "Contact lens power", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.power", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.power" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.backCurve", "requirements": "Standard contact lens prescription measures.", "min": 0, "definition": "Back curvature measured in millimetres.", "isModifier": false, "short": "Contact lens back curvature", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.backCurve", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.backCurve" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.diameter", "requirements": "Standard contact lens prescription measures.", "min": 0, "definition": "Contact lens diameter measured in millimetres.", "isModifier": false, "short": "Contact lens diameter", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "decimal" } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.diameter", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.diameter" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.duration", "requirements": "Standard contact lens prescription measures.", "min": 0, "definition": "The recommended maximum wear period for the lens.", "isModifier": false, "short": "Lens wear duration", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "Quantity", "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] } ], "mustSupport": true, "max": "1", "id": "VisionPrescription.lensSpecification.duration", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.duration" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.color", "requirements": "Standard contact lens prescription measures.", "min": 0, "definition": "Special color or pattern.", "isModifier": false, "short": "Color required", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "VisionPrescription.lensSpecification.color", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.color" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.brand", "requirements": "Standard lens prescription measures.", "min": 0, "definition": "Brand recommendations or restrictions.", "isModifier": false, "short": "Brand required", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "VisionPrescription.lensSpecification.brand", "base": { "max": "1", "min": 0, "path": "VisionPrescription.lensSpecification.brand" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "VisionPrescription.lensSpecification.note", "requirements": "Standard lens prescription measures.", "min": 0, "definition": "Notes for special requirements such as coatings and lens materials.", "isModifier": false, "short": "Notes for coatings", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "Annotation" } ], "max": "*", "id": "VisionPrescription.lensSpecification.note", "base": { "max": "*", "min": 0, "path": "VisionPrescription.lensSpecification.note" }, "isSummary": false } ] }, "status": "active", "id": "4d36253d-b678-4091-bce5-a2f33b322470", "kind": "resource", "url": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-visionprescription", "version": "2.1.0-preview", "differential": { "element": [ { "id": "VisionPrescription", "path": "VisionPrescription" }, { "id": "VisionPrescription.extension", "path": "VisionPrescription.extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "VisionPrescription.extension:Coverage-Information", "max": "*", "min": 0, "path": "VisionPrescription.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information" ] } ], "short": "Coverage Info", "sliceName": "Coverage-Information", "mustSupport": true }, { "id": "VisionPrescription.identifier", "path": "VisionPrescription.identifier", "mustSupport": true }, { "id": "VisionPrescription.status", "path": "VisionPrescription.status", "comment": "This will be 'draft' when using order-select or an initial order-sign, but may be 'active' or other values for order-sign representing edits to the order or for order-dispatch.", "example": [ { "label": "General", "valueCode": "draft" } ], "mustSupport": true }, { "id": "VisionPrescription.created", "path": "VisionPrescription.created", "mustSupport": true }, { "id": "VisionPrescription.patient", "path": "VisionPrescription.patient", "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient" ] } ], "mustSupport": true }, { "id": "VisionPrescription.encounter", "path": "VisionPrescription.encounter", "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter3.1", "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter6.1" ] } ], "comment": "potentially relevant for CRD in some situations.", "mustSupport": true }, { "id": "VisionPrescription.dateWritten", "path": "VisionPrescription.dateWritten", "mustSupport": true }, { "id": "VisionPrescription.prescriber", "path": "VisionPrescription.prescriber", "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner", "http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole" ] } ], "mustSupport": true }, { "id": "VisionPrescription.lensSpecification", "path": "VisionPrescription.lensSpecification", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.product", "path": "VisionPrescription.lensSpecification.product", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.eye", "path": "VisionPrescription.lensSpecification.eye", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.sphere", "path": "VisionPrescription.lensSpecification.sphere", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.cylinder", "path": "VisionPrescription.lensSpecification.cylinder", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.axis", "path": "VisionPrescription.lensSpecification.axis", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.prism", "path": "VisionPrescription.lensSpecification.prism", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.prism.amount", "path": "VisionPrescription.lensSpecification.prism.amount", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.prism.base", "path": "VisionPrescription.lensSpecification.prism.base", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.add", "path": "VisionPrescription.lensSpecification.add", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.power", "path": "VisionPrescription.lensSpecification.power", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.backCurve", "path": "VisionPrescription.lensSpecification.backCurve", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.diameter", "path": "VisionPrescription.lensSpecification.diameter", "mustSupport": true }, { "id": "VisionPrescription.lensSpecification.duration", "path": "VisionPrescription.lensSpecification.duration", "mustSupport": true } ] }, "contact": [ { "telecom": [ { "value": "http://www.hl7.org/Special/committees/fm", "system": "url" } ] } ], "baseDefinition": "http://hl7.org/fhir/StructureDefinition/VisionPrescription" }