UNPKG

fhir-schemas

Version:

Schemas for Fast Healthcare Interoperability Resources.

75 lines 3.16 kB
{ "schema": "http://json-schema.org/draft-04/schema#", "$id": "http://hl7.org/fhir/json-schema/TriggerDefinition", "$ref": "#/definitions/TriggerDefinition", "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas", "definitions": { "TriggerDefinition": { "allOf": [ { "$ref": "Element#/definitions/Element" }, { "description": "A description of a triggering event.", "properties": { "type": { "description": "The type of triggering event.", "enum": [ "named-event", "periodic", "data-added", "data-modified", "data-removed", "data-accessed", "data-access-ended" ], "type": "string" }, "_type": { "description": "Extensions for type", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "eventName": { "description": "The name of the event (if this is a named-event trigger).", "type": "string" }, "_eventName": { "description": "Extensions for eventName", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "eventTimingTiming": { "description": "The timing of the event (if this is a period trigger).", "$ref": "http://hl7.org/fhir/json-schema/Timing#/definitions/Timing" }, "eventTimingReference": { "description": "The timing of the event (if this is a period trigger).", "$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference" }, "eventTimingDate": { "description": "The timing of the event (if this is a period trigger).", "pattern": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?", "type": "string" }, "_eventTimingDate": { "description": "Extensions for eventTimingDate", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "eventTimingDateTime": { "description": "The timing of the event (if this is a period trigger).", "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)))?)?)?", "type": "string" }, "_eventTimingDateTime": { "description": "Extensions for eventTimingDateTime", "$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element" }, "eventData": { "description": "The triggering data of the event (if this is a data trigger).", "$ref": "http://hl7.org/fhir/json-schema/DataRequirement#/definitions/DataRequirement" } } } ] } } }