UNPKG

fhir-schemas

Version:

Schemas for Fast Healthcare Interoperability Resources.

223 lines 9.44 kB
{ "schema": "http://json-schema.org/draft-04/schema#", "$id": "http://hl7.org/fhir/json-schema/VisionPrescription", "$ref": "#/definitions/VisionPrescription", "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas", "definitions": { "VisionPrescription": { "allOf": [ { "$ref": "DomainResource#/definitions/DomainResource" }, { "description": "An authorization for the supply of glasses and/or contact lenses to a patient.", "properties": { "resourceType": { "description": "This is a VisionPrescription resource", "type": "string", "enum": [ "VisionPrescription" ] }, "identifier": { "description": "Business identifier which may be used by other parties to reference or identify the prescription.", "type": "array", "items": { "$ref": "http://hl7.org/fhir/json-schema/Identifier#/definitions/Identifier" } }, "status": { "description": "The status of the resource instance.", "type": "string", "pattern": "[^\\s]+([\\s]?[^\\s]+)*" }, "_status": { "description": "Extensions for status", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "patient": { "description": "A link to a resource representing the person to whom the vision products will be supplied.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference" }, "encounter": { "description": "A link to a resource that identifies the particular occurrence of contact between patient and health care provider.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference" }, "dateWritten": { "description": "The date (and perhaps time) when the prescription was written.", "type": "string", "pattern": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?" }, "_dateWritten": { "description": "Extensions for dateWritten", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "prescriber": { "description": "The healthcare professional responsible for authorizing the prescription.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference" }, "reasonCodeableConcept": { "description": "Can be the reason or the indication for writing the prescription.", "$ref": "http://hl7.org/fhir/json-schema/CodeableConcept#/definitions/CodeableConcept" }, "reasonReference": { "description": "Can be the reason or the indication for writing the prescription.", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference" }, "dispense": { "description": "Deals with details of the dispense part of the supply specification.", "type": "array", "items": { "$ref": "#/definitions/VisionPrescription_Dispense" } } }, "required": [ "resourceType" ] } ] }, "VisionPrescription_Dispense": { "allOf": [ { "$ref": "BackboneElement#/definitions/BackboneElement" }, { "description": "An authorization for the supply of glasses and/or contact lenses to a patient.", "properties": { "product": { "description": "Identifies the type of vision correction product which is required for the patient.", "$ref": "http://hl7.org/fhir/json-schema/CodeableConcept#/definitions/CodeableConcept" }, "eye": { "description": "The eye for which the lens applies.", "enum": [ "right", "left" ], "type": "string" }, "_eye": { "description": "Extensions for eye", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "sphere": { "description": "Lens power measured in diopters (0.25 units).", "type": "number", "pattern": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?" }, "_sphere": { "description": "Extensions for sphere", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "cylinder": { "description": "Power adjustment for astigmatism measured in diopters (0.25 units).", "type": "number", "pattern": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?" }, "_cylinder": { "description": "Extensions for cylinder", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "axis": { "description": "Adjustment for astigmatism measured in integer degrees.", "type": "number", "pattern": "-?([0]|([1-9][0-9]*))" }, "_axis": { "description": "Extensions for axis", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "prism": { "description": "Amount of prism to compensate for eye alignment in fractional units.", "type": "number", "pattern": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?" }, "_prism": { "description": "Extensions for prism", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "base": { "description": "The relative base, or reference lens edge, for the prism.", "enum": [ "up", "down", "in", "out" ], "type": "string" }, "_base": { "description": "Extensions for base", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "add": { "description": "Power adjustment for multifocal lenses measured in diopters (0.25 units).", "type": "number", "pattern": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?" }, "_add": { "description": "Extensions for add", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "power": { "description": "Contact lens power measured in diopters (0.25 units).", "type": "number", "pattern": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?" }, "_power": { "description": "Extensions for power", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "backCurve": { "description": "Back curvature measured in millimeters.", "type": "number", "pattern": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?" }, "_backCurve": { "description": "Extensions for backCurve", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "diameter": { "description": "Contact lens diameter measured in millimeters.", "type": "number", "pattern": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?" }, "_diameter": { "description": "Extensions for diameter", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "duration": { "description": "The recommended maximum wear period for the lens.", "$ref": "http://hl7.org/fhir/json-schema/Quantity#/definitions/Quantity" }, "color": { "description": "Special color or pattern.", "type": "string" }, "_color": { "description": "Extensions for color", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "brand": { "description": "Brand recommendations or restrictions.", "type": "string" }, "_brand": { "description": "Extensions for brand", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "note": { "description": "Notes for special requirements such as coatings and lens materials.", "type": "array", "items": { "$ref": "http://hl7.org/fhir/json-schema/Annotation#/definitions/Annotation" } } } } ] } } }