{ "$schema": "http://json-schema.org/draft-04/schema#", "id": "http://hl7.org/fhir/json-schema/Communication", "$ref": "#/definitions/Communication", "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas", "definitions": { "Communication": { "allOf": [ { "$ref": "DomainResource.schema.json/definitions/DomainResource" }, { "description": "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition.", "properties": { "resourceType": { "description": "This is a Communication resource", "type": "string", "enum": [ "Communication" ] }, "identifier": { "description": "Identifiers associated with this Communication that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).", "type": "array", "items": { "$ref": "Identifier.schema.json/definitions/Identifier" } }, "category": { "description": "The type of message conveyed such as alert, notification, reminder, instruction, etc.", "$ref": "CodeableConcept.schema.json/definitions/CodeableConcept" }, "sender": { "description": "The entity (e.g. person, organization, clinical information system, or device) which was the source of the communication.", "$ref": "Reference.schema.json/definitions/Reference" }, "recipient": { "description": "The entity (e.g. person, organization, clinical information system, or device) which was the target of the communication. If receipts need to be tracked by individual, a separate resource instance will need to be created for each recipient.  Multiple recipient communications are intended where either a receipt(s) is not tracked (e.g. a mass mail-out) or is captured in aggregate (all emails confirmed received by a particular time).", "type": "array", "items": { "$ref": "Reference.schema.json/definitions/Reference" } }, "payload": { "description": "Text, attachment(s), or resource(s) that was communicated to the recipient.", "type": "array", "items": { "$ref": "#/definitions/Communication.Payload" } }, "medium": { "description": "A channel that was used for this communication (e.g. email, fax).", "type": "array", "items": { "$ref": "CodeableConcept.schema.json/definitions/CodeableConcept" } }, "status": { "description": "The status of the transmission.", "type": "string", "pattern": "[^\\s]+([\\s]?[^\\s]+)*" }, "status_": { "description": "Extensions for status", "$ref": "Element.schema.json/definitions/Element" }, "encounter": { "description": "The encounter within which the communication was sent.", "$ref": "Reference.schema.json/definitions/Reference" }, "sent": { "description": "The time when this communication was sent.", "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)))?)?)?" }, "sent_": { "description": "Extensions for sent", "$ref": "Element.schema.json/definitions/Element" }, "received": { "description": "The time when this communication arrived at the destination.", "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)))?)?)?" }, "received_": { "description": "Extensions for received", "$ref": "Element.schema.json/definitions/Element" }, "reason": { "description": "The reason or justification for the communication.", "type": "array", "items": { "$ref": "CodeableConcept.schema.json/definitions/CodeableConcept" } }, "subject": { "description": "The patient who was the focus of this communication.", "$ref": "Reference.schema.json/definitions/Reference" }, "requestDetail": { "description": "The communication request that was responsible for producing this communication.", "$ref": "Reference.schema.json/definitions/Reference" } }, "required": [ "resourceType" ] } ] }, "Communication.Payload": { "allOf": [ { "$ref": "BackboneElement.schema.json/definitions/BackboneElement" }, { "description": "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition.", "properties": { "contentString": { "description": "A communicated content (or for multi-part communications, one portion of the communication).", "type": "string" }, "contentString_": { "description": "Extensions for contentString", "$ref": "Element.schema.json/definitions/Element" }, "contentAttachment": { "description": "A communicated content (or for multi-part communications, one portion of the communication).", "$ref": "Attachment.schema.json/definitions/Attachment" }, "contentReference": { "description": "A communicated content (or for multi-part communications, one portion of the communication).", "$ref": "Reference.schema.json/definitions/Reference" } } } ] } } }