This page is part of the FHIR Specification (v3.3.0: R4 Ballot 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4
Structured Documents Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Device, Encounter, Patient, Practitioner, RelatedPerson |
This is a representation of the json schema for DocumentReference, which is just a part of the full JSON Schema.
{ "$schema": "http://json-schema.org/draft-06/schema#", "id": "http://hl7.org/fhir/json-schema/DocumentReference", "$ref": "#/definitions/DocumentReference", "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas", "definitions": { "DocumentReference": { "description": "A reference to a document.", "properties": { "resourceType": { "description": "This is a DocumentReference resource", "const": "DocumentReference" }, "id": { "description": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "$ref": "id.schema.json#/definitions/id" }, "meta": { "description": "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.", "$ref": "Meta.schema.json#/definitions/Meta" }, "implicitRules": { "description": "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.", "$ref": "#/definitions/uri" }, "_implicitRules": { "description": "Extensions for implicitRules", "$ref": "Element.schema.json#/definitions/Element" }, "language": { "description": "The base language in which the resource is written.", "$ref": "#/definitions/code" }, "_language": { "description": "Extensions for language", "$ref": "Element.schema.json#/definitions/Element" }, "text": { "description": "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.", "$ref": "Narrative.schema.json#/definitions/Narrative" }, "contained": { "description": "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.", "items": { "$ref": "ResourceList.schema.json#/definitions/ResourceList" }, "type": "array" }, "extension": { "description": "May be used to represent additional information that is not part of the basic definition of the resource. 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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "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. 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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "masterIdentifier": { "description": "Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document.", "$ref": "Identifier.schema.json#/definitions/Identifier" }, "identifier": { "description": "Other identifiers associated with the document, including version independent identifiers.", "items": { "$ref": "Identifier.schema.json#/definitions/Identifier" }, "type": "array" }, "status": { "description": "The status of this document reference.", "enum": [ "current", "superseded", "entered-in-error" ] }, "_status": { "description": "Extensions for status", "$ref": "Element.schema.json#/definitions/Element" }, "docStatus": { "description": "The status of the underlying document.", "$ref": "#/definitions/code" }, "_docStatus": { "description": "Extensions for docStatus", "$ref": "Element.schema.json#/definitions/Element" }, "type": { "description": "Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "class": { "description": "A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "subject": { "description": "Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure).", "$ref": "Reference.schema.json#/definitions/Reference" }, "created": { "description": "When the document was created.", "$ref": "#/definitions/dateTime" }, "_created": { "description": "Extensions for created", "$ref": "Element.schema.json#/definitions/Element" }, "date": { "description": "When the document reference was created.", "$ref": "#/definitions/instant" }, "_date": { "description": "Extensions for date", "$ref": "Element.schema.json#/definitions/Element" }, "agent": { "description": "An actor taking an active role in the document.", "items": { "$ref": "#/definitions/DocumentReference_Agent" }, "type": "array" }, "authenticator": { "description": "Which person or organization authenticates that this document is valid.", "$ref": "Reference.schema.json#/definitions/Reference" }, "custodian": { "description": "Identifies the organization or group who is responsible for ongoing maintenance of and access to the document.", "$ref": "Reference.schema.json#/definitions/Reference" }, "relatesTo": { "description": "Relationships that this document has with other document references that already exist.", "items": { "$ref": "#/definitions/DocumentReference_RelatesTo" }, "type": "array" }, "description": { "description": "Human-readable description of the source document. This is sometimes known as the \"title\".", "$ref": "#/definitions/string" }, "_description": { "description": "Extensions for description", "$ref": "Element.schema.json#/definitions/Element" }, "securityLabel": { "description": "A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to.", "items": { "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "type": "array" }, "content": { "description": "The document and format referenced. There may be multiple content element repetitions, each with a different format.", "items": { "$ref": "#/definitions/DocumentReference_Content" }, "type": "array" }, "context": { "description": "The clinical context in which the document was prepared.", "$ref": "#/definitions/DocumentReference_Context" } }, "additionalProperties": false, "required": [ "content", "resourceType" ] }, "DocumentReference_Agent": { "description": "A reference to a document.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "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. 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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "type": { "description": "Specification of the participation type the agent played.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "who": { "description": "Identifies who is responsible for adding the information to the document.", "$ref": "Reference.schema.json#/definitions/Reference" } }, "additionalProperties": false, "required": [ "who" ] }, "DocumentReference_RelatesTo": { "description": "A reference to a document.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "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. 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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "code": { "description": "The type of relationship that this document has with anther document.", "enum": [ "replaces", "transforms", "signs", "appends" ] }, "_code": { "description": "Extensions for code", "$ref": "Element.schema.json#/definitions/Element" }, "target": { "description": "The target document of this relationship.", "$ref": "Reference.schema.json#/definitions/Reference" } }, "additionalProperties": false, "required": [ "target" ] }, "DocumentReference_Content": { "description": "A reference to a document.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "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. 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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "attachment": { "description": "The document or URL of the document along with critical metadata to prove content has integrity.", "$ref": "Attachment.schema.json#/definitions/Attachment" }, "format": { "description": "An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType.", "$ref": "Coding.schema.json#/definitions/Coding" } }, "additionalProperties": false, "required": [ "attachment" ] }, "DocumentReference_Context": { "description": "A reference to a document.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "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. 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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "encounter": { "description": "Describes the clinical encounter or type of care that the document content is associated with.", "$ref": "Reference.schema.json#/definitions/Reference" }, "event": { "description": "This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the type code, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act.", "items": { "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "type": "array" }, "period": { "description": "The time period over which the service that is described by the document was provided.", "$ref": "Period.schema.json#/definitions/Period" }, "facilityType": { "description": "The kind of facility where the patient was seen.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "practiceSetting": { "description": "This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty.", "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" }, "sourcePatientInfo": { "description": "The Patient Information as known when the document was published. May be a reference to a version specific, or contained.", "$ref": "Reference.schema.json#/definitions/Reference" }, "related": { "description": "Related identifiers or resources associated with the DocumentReference.", "items": { "$ref": "#/definitions/DocumentReference_Related" }, "type": "array" } }, "additionalProperties": false }, "DocumentReference_Related": { "description": "A reference to a document.", "properties": { "id": { "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "$ref": "string.schema.json#/definitions/string" }, "extension": { "description": "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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "modifierExtension": { "description": "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. 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.", "items": { "$ref": "Extension.schema.json#/definitions/Extension" }, "type": "array" }, "identifier": { "description": "Related identifier to this DocumentReference. If both id and ref are present they shall refer to the same thing.", "$ref": "Identifier.schema.json#/definitions/Identifier" }, "ref": { "description": "Related Resource to this DocumentReference. If both id and ref are present they shall refer to the same thing.", "$ref": "Reference.schema.json#/definitions/Reference" } }, "additionalProperties": false } } }