UNPKG

fhir-schemas

Version:

Schemas for Fast Healthcare Interoperability Resources.

213 lines 10.2 kB
{ "schema": "http://json-schema.org/draft-04/schema#", "$id": "http://hl7.org/fhir/json-schema/DataElement", "$ref": "#/definitions/DataElement", "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas", "definitions": { "DataElement": { "allOf": [ { "$ref": "DomainResource#/definitions/DomainResource" }, { "description": "The formal description of a single piece of information that can be gathered and reported.", "properties": { "resourceType": { "description": "This is a DataElement resource", "type": "string", "enum": [ "DataElement" ] }, "url": { "description": "An absolute URI that is used to identify this data element when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this data element is (or will be) published. The URL SHOULD include the major version of the data element. For more information see [Technical and Business Versions](resource.html#versions).", "type": "string" }, "_url": { "description": "Extensions for url", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "identifier": { "description": "A formal identifier that is used to identify this data element when it is represented in other formats, or referenced in a specification, model, design or an instance.", "type": "array", "items": { "$ref": "http://hl7.org/fhir/json-schema/Identifier#/definitions/Identifier" } }, "version": { "description": "The identifier that is used to identify this version of the data element when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the data element author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", "type": "string" }, "_version": { "description": "Extensions for version", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "status": { "description": "The status of this data element. Enables tracking the life-cycle of the content.", "enum": [ "draft", "active", "retired", "unknown" ], "type": "string" }, "_status": { "description": "Extensions for status", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "experimental": { "description": "A boolean value to indicate that this data element is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", "type": "boolean" }, "_experimental": { "description": "Extensions for experimental", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "date": { "description": "The date (and optionally time) when the data element was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the data element changes.", "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)))?)?)?" }, "_date": { "description": "Extensions for date", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "publisher": { "description": "The name of the individual or organization that published the data element.", "type": "string" }, "_publisher": { "description": "Extensions for publisher", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "name": { "description": "A natural language name identifying the data element. This name should be usable as an identifier for the module by machine processing applications such as code generation.", "type": "string" }, "_name": { "description": "Extensions for name", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "title": { "description": "A short, descriptive, user-friendly title for the data element.", "type": "string" }, "_title": { "description": "Extensions for title", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "contact": { "description": "Contact details to assist a user in finding and communicating with the publisher.", "type": "array", "items": { "$ref": "http://hl7.org/fhir/json-schema/ContactDetail#/definitions/ContactDetail" } }, "useContext": { "description": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate data element instances.", "type": "array", "items": { "$ref": "http://hl7.org/fhir/json-schema/UsageContext#/definitions/UsageContext" } }, "jurisdiction": { "description": "A legal or geographic region in which the data element is intended to be used.", "type": "array", "items": { "$ref": "http://hl7.org/fhir/json-schema/CodeableConcept#/definitions/CodeableConcept" } }, "copyright": { "description": "A copyright statement relating to the data element and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the data element.", "type": "string" }, "_copyright": { "description": "Extensions for copyright", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "stringency": { "description": "Identifies how precise the data element is in its definition.", "enum": [ "comparable", "fully-specified", "equivalent", "convertable", "scaleable", "flexible" ], "type": "string" }, "_stringency": { "description": "Extensions for stringency", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "mapping": { "description": "Identifies a specification (other than a terminology) that the elements which make up the DataElement have some correspondence with.", "type": "array", "items": { "$ref": "#/definitions/DataElement_Mapping" } }, "element": { "description": "Defines the structure, type, allowed values and other constraining characteristics of the data element.", "type": "array", "items": { "$ref": "http://hl7.org/fhir/json-schema/ElementDefinition#/definitions/ElementDefinition" } } }, "required": [ "resourceType", "element" ] } ] }, "DataElement_Mapping": { "allOf": [ { "$ref": "BackboneElement#/definitions/BackboneElement" }, { "description": "The formal description of a single piece of information that can be gathered and reported.", "properties": { "identity": { "description": "An internal id that is used to identify this mapping set when specific mappings are made on a per-element basis.", "type": "string", "pattern": "[A-Za-z0-9\\-\\.]{1,64}" }, "_identity": { "description": "Extensions for identity", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "uri": { "description": "An absolute URI that identifies the specification that this mapping is expressed to.", "type": "string" }, "_uri": { "description": "Extensions for uri", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "name": { "description": "A name for the specification that is being mapped to.", "type": "string" }, "_name": { "description": "Extensions for name", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "comment": { "description": "Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.", "type": "string" }, "_comment": { "description": "Extensions for comment", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" } } } ] } } }