Skip to content

Instantly share code, notes, and snippets.

@pieterbos
Last active December 1, 2021 15:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pieterbos/ff8a9c67fd3d346b423a8cd69befe67a to your computer and use it in GitHub Desktop.
Save pieterbos/ff8a9c67fd3d346b423a8cd69befe67a to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-07/schema",
"allOf": [
{
"required": [
"_type"
]
},
{
"if": {
"properties": {
"_type": {
"const": "COMPOSITION"
}
}
},
"then": {
"$ref": "#/definitions/COMPOSITION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBSERVATION"
}
}
},
"then": {
"$ref": "#/definitions/OBSERVATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EVALUATION"
}
}
},
"then": {
"$ref": "#/definitions/EVALUATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACTIVITY"
}
}
},
"then": {
"$ref": "#/definitions/ACTIVITY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACTION"
}
}
},
"then": {
"$ref": "#/definitions/ACTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "SECTION"
}
}
},
"then": {
"$ref": "#/definitions/SECTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "INSTRUCTION"
}
}
},
"then": {
"$ref": "#/definitions/INSTRUCTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "INSTRUCTION_DETAILS"
}
}
},
"then": {
"$ref": "#/definitions/INSTRUCTION_DETAILS"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ADMIN_ENTRY"
}
}
},
"then": {
"$ref": "#/definitions/ADMIN_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "CLUSTER"
}
}
},
"then": {
"$ref": "#/definitions/CLUSTER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "CAPABILITY"
}
}
},
"then": {
"$ref": "#/definitions/CAPABILITY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PERSON"
}
}
},
"then": {
"$ref": "#/definitions/PERSON"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ADDRESS"
}
}
},
"then": {
"$ref": "#/definitions/ADDRESS"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ROLE"
}
}
},
"then": {
"$ref": "#/definitions/ROLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ORGANISATION"
}
}
},
"then": {
"$ref": "#/definitions/ORGANISATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTITY"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTITY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
}
],
"definitions": {
"VERSION_STATUS": {
"type": "object",
"required": [
],
"properties": {
"_type": {
"type": "string",
"pattern": "^VERSION_STATUS(<.*>)?$"
}
}
},
"SYNC_EXTRACT_SPEC": {
"type": "object",
"required": [
"includes_versions"
],
"properties": {
"includes_versions": {
"type": "boolean"
},
"contribution_list": {
"type": "array",
"items": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
},
"contributions_since": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"all_contributions": {
"type": "boolean"
},
"_type": {
"type": "string",
"pattern": "^SYNC_EXTRACT_SPEC(<.*>)?$"
}
},
"additionalProperties": false
},
"AUDIT_DETAILS": {
"type": "object",
"required": [
"system_id",
"time_committed",
"change_type",
"committer"
],
"properties": {
"system_id": {
"type": "string"
},
"time_committed": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"change_type": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"description": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"committer": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^AUDIT_DETAILS(<.*>)?$"
}
},
"additionalProperties": false
},
"TERMINOLOGY_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^TERMINOLOGY_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"EHR": {
"type": "object",
"required": [
"system_id",
"ehr_id",
"time_created",
"ehr_access",
"ehr_status",
"contributions"
],
"properties": {
"system_id": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"ehr_id": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"ehr_access": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"ehr_status": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"directory": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"folders": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
}
},
"compositions": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
}
},
"contributions": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
}
},
"_type": {
"type": "string",
"pattern": "^EHR(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_TIME": {
"type": "object",
"required": [
"value"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
},
"minItems": 1
},
"magnitude_status": {
"type": "string"
},
"accuracy": {
"$ref": "#/definitions/DV_DURATION"
},
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DV_TIME(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_MANIFEST": {
"type": "object",
"required": [
],
"properties": {
"entities": {
"type": "array",
"items": {
"$ref": "#/definitions/EXTRACT_ENTITY_MANIFEST"
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_MANIFEST(<.*>)?$"
}
},
"additionalProperties": false
},
"REVISION_HISTORY_ITEM": {
"type": "object",
"required": [
"version_id",
"audits"
],
"properties": {
"version_id": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
},
"audits": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"ATTESTATION",
"AUDIT_DETAILS"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ATTESTATION"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ATTESTATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "AUDIT_DETAILS"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^REVISION_HISTORY_ITEM(<.*>)?$"
}
},
"additionalProperties": false
},
"ARCHETYPE_HRID": {
"type": "object",
"required": [
"namespace",
"rm_publisher",
"rm_package",
"rm_class",
"concept_id",
"release_version",
"version_status",
"build_count"
],
"properties": {
"namespace": {
"type": "string"
},
"rm_publisher": {
"type": "string"
},
"rm_package": {
"type": "string"
},
"rm_class": {
"type": "string"
},
"concept_id": {
"type": "string"
},
"release_version": {
"type": "string"
},
"version_status": {
"$ref": "#/definitions/VERSION_STATUS"
},
"build_count": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^ARCHETYPE_HRID(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_IDENTITY": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"details"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^PARTY_IDENTITY(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_PARSABLE": {
"type": "object",
"required": [
"value",
"formalism"
],
"properties": {
"charset": {
"$ref": "#/definitions/CODE_PHRASE"
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"value": {
"type": "string"
},
"formalism": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DV_PARSABLE(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_VERSION_SPEC": {
"type": "object",
"required": [
"include_all_versions",
"include_revision_history",
"include_data"
],
"properties": {
"include_all_versions": {
"type": "boolean"
},
"commit_time_interval": {
"$ref": "#/definitions/DV_INTERVAL"
},
"include_revision_history": {
"type": "boolean"
},
"include_data": {
"type": "boolean"
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_VERSION_SPEC(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_PARTICIPATION": {
"type": "object",
"required": [
"performer",
"function"
],
"properties": {
"performer": {
"type": "string"
},
"function": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"mode": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"time": {
"$ref": "#/definitions/DV_INTERVAL"
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_PARTICIPATION(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_COUNT": {
"type": "object",
"required": [
"magnitude"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
}
},
"magnitude_status": {
"type": "string"
},
"accuracy": {
"type": "number"
},
"accuracy_is_percent": {
"type": "boolean"
},
"magnitude": {
"type": "integer"
},
"_type": {
"type": "string",
"pattern": "^DV_COUNT(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_DATE_TIME": {
"type": "object",
"required": [
"value"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
},
"minItems": 1
},
"magnitude_status": {
"type": "string"
},
"accuracy": {
"$ref": "#/definitions/DV_DURATION"
},
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DV_DATE_TIME(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_DURATION": {
"type": "object",
"required": [
"value"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
},
"minItems": 1
},
"magnitude_status": {
"type": "string"
},
"accuracy": {
"type": "number"
},
"accuracy_is_percent": {
"type": "boolean"
},
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DV_DURATION(<.*>)?$"
}
},
"additionalProperties": false
},
"CLUSTER": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"items"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"items": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"CLUSTER",
"ELEMENT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "CLUSTER"
}
}
},
"then": {
"$ref": "#/definitions/CLUSTER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ELEMENT"
}
}
},
"then": {
"$ref": "#/definitions/ELEMENT"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^CLUSTER(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_RELATED": {
"type": "object",
"required": [
"relationship"
],
"properties": {
"external_ref": {
"$ref": "#/definitions/PARTY_REF"
},
"name": {
"type": "string"
},
"identifiers": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_IDENTIFIER"
},
"minItems": 1
},
"relationship": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"_type": {
"type": "string",
"pattern": "^PARTY_RELATED(<.*>)?$"
}
},
"additionalProperties": false
},
"ISO_OID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^ISO_OID(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_FOLDER": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"items": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"EXTRACT_FOLDER",
"GENERIC_CONTENT_ITEM",
"OPENEHR_CONTENT_ITEM"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_FOLDER"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_CONTENT_ITEM"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_CONTENT_ITEM"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OPENEHR_CONTENT_ITEM"
}
}
},
"then": {
"$ref": "#/definitions/OPENEHR_CONTENT_ITEM"
}
}
]
}
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_FOLDER(<.*>)?$"
}
},
"additionalProperties": false
},
"INSTRUCTION": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"language",
"encoding",
"subject",
"narrative"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"subject": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"provider": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"other_participations": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTICIPATION"
}
},
"workflow_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"protocol": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"guideline_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"narrative": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"expiry_time": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"wf_definition": {
"$ref": "#/definitions/DV_PARSABLE"
},
"activities": {
"type": "array",
"items": {
"$ref": "#/definitions/ACTIVITY"
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^INSTRUCTION(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_CHAPTER": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"items": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"EXTRACT_FOLDER",
"GENERIC_CONTENT_ITEM",
"OPENEHR_CONTENT_ITEM"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_FOLDER"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_CONTENT_ITEM"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_CONTENT_ITEM"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OPENEHR_CONTENT_ITEM"
}
}
},
"then": {
"$ref": "#/definitions/OPENEHR_CONTENT_ITEM"
}
}
]
}
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_CHAPTER(<.*>)?$"
}
},
"additionalProperties": false
},
"PERSON": {
"type": "object",
"required": [
"uid",
"archetype_node_id",
"name",
"identities"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"identities": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_IDENTITY"
},
"minItems": 1
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/definitions/CONTACT"
},
"minItems": 1
},
"relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_RELATIONSHIP"
},
"minItems": 1
},
"reverse_relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/LOCATABLE_REF"
},
"minItems": 1
},
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_REF"
},
"minItems": 1
},
"languages": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^PERSON(<.*>)?$"
}
},
"additionalProperties": false
},
"GENERIC_ID": {
"type": "object",
"required": [
"value",
"scheme"
],
"properties": {
"value": {
"type": "string"
},
"scheme": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^GENERIC_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"RESOURCE_DESCRIPTION": {
"type": "object",
"required": [
"original_author",
"lifecycle_state",
"parent_resource",
"details"
],
"properties": {
"original_author": {
"type": "object"
},
"other_contributors": {
"type": "array",
"items": {
"type": "string"
}
},
"lifecycle_state": {
"type": "string"
},
"resource_package_uri": {
"type": "string"
},
"other_details": {
"type": "object"
},
"parent_resource": {
"type": "object"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/RESOURCE_DESCRIPTION_ITEM"
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^RESOURCE_DESCRIPTION(<.*>)?$"
}
},
"additionalProperties": false
},
"EVALUATION": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"language",
"encoding",
"subject",
"data"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"subject": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"provider": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"other_participations": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTICIPATION"
}
},
"workflow_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"protocol": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"guideline_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"data": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^EVALUATION(<.*>)?$"
}
},
"additionalProperties": false
},
"CAPABILITY": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"credentials"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"credentials": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"time_validity": {
"$ref": "#/definitions/DV_INTERVAL"
},
"_type": {
"type": "string",
"pattern": "^CAPABILITY(<.*>)?$"
}
},
"additionalProperties": false
},
"ISO8601_TYPE": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^ISO8601_TYPE(<.*>)?$"
}
},
"additionalProperties": false
},
"CONTRIBUTION": {
"type": "object",
"required": [
"uid",
"audit",
"versions"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"audit": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"ATTESTATION",
"AUDIT_DETAILS"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ATTESTATION"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ATTESTATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "AUDIT_DETAILS"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
}
]
},
"versions": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
}
},
"_type": {
"type": "string",
"pattern": "^CONTRIBUTION(<.*>)?$"
}
},
"additionalProperties": false
},
"ARCHETYPED": {
"type": "object",
"required": [
"archetype_id",
"rm_version"
],
"properties": {
"archetype_id": {
"$ref": "#/definitions/ARCHETYPE_ID"
},
"template_id": {
"$ref": "#/definitions/TEMPLATE_ID"
},
"rm_version": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^ARCHETYPED(<.*>)?$"
}
},
"additionalProperties": false
},
"FEEDER_AUDIT_DETAILS": {
"type": "object",
"required": [
"system_id"
],
"properties": {
"system_id": {
"type": "string"
},
"location": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_RELATED",
"PARTY_IDENTIFIED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
}
]
},
"provider": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_RELATED",
"PARTY_IDENTIFIED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
}
]
},
"subject": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"time": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"version_id": {
"type": "string"
},
"other_details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^FEEDER_AUDIT_DETAILS(<.*>)?$"
}
},
"additionalProperties": false
},
"ORIGINAL_VERSION": {
"type": "object",
"required": [
"contribution",
"commit_audit",
"uid",
"lifecycle_state"
],
"properties": {
"contribution": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"commit_audit": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"ATTESTATION",
"AUDIT_DETAILS"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ATTESTATION"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ATTESTATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "AUDIT_DETAILS"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
}
]
},
"signature": {
"type": "string"
},
"uid": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
},
"preceding_version_uid": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
},
"other_input_version_uids": {
"type": "array",
"items": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
},
"minItems": 1
},
"attestations": {
"type": "array",
"items": {
"$ref": "#/definitions/ATTESTATION"
},
"minItems": 1
},
"lifecycle_state": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"data": {
"type": "object"
},
"_type": {
"type": "string",
"pattern": "^ORIGINAL_VERSION(<.*>)?$"
}
},
"additionalProperties": false
},
"POINT_EVENT": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"time",
"data"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"time": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"state": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"data": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^POINT_EVENT(<.*>)?$"
}
},
"additionalProperties": false
},
"CODE_PHRASE": {
"type": "object",
"required": [
"terminology_id",
"code_string"
],
"properties": {
"terminology_id": {
"$ref": "#/definitions/TERMINOLOGY_ID"
},
"code_string": {
"type": "string"
},
"preferred_term": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^CODE_PHRASE(<.*>)?$"
}
},
"additionalProperties": false
},
"INSTRUCTION_DETAILS": {
"type": "object",
"required": [
"instruction_id",
"activity_id"
],
"properties": {
"instruction_id": {
"$ref": "#/definitions/LOCATABLE_REF"
},
"wf_details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"activity_id": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^INSTRUCTION_DETAILS(<.*>)?$"
}
},
"additionalProperties": false
},
"X_VERSIONED_PARTY": {
"type": "object",
"required": [
"uid",
"owner_id",
"time_created",
"total_version_count",
"extract_version_count"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"owner_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"total_version_count": {
"type": "integer"
},
"extract_version_count": {
"type": "integer"
},
"revision_history": {
"$ref": "#/definitions/REVISION_HISTORY"
},
"versions": {
"type": "array",
"items": {
"$ref": "#/definitions/ORIGINAL_VERSION"
}
},
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_PARTY(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_REQUEST": {
"type": "object",
"required": [
"uid",
"archetype_node_id",
"name",
"extract_spec"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"extract_spec": {
"$ref": "#/definitions/EXTRACT_SPEC"
},
"update_spec": {
"$ref": "#/definitions/EXTRACT_UPDATE_SPEC"
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_REQUEST(<.*>)?$"
}
},
"additionalProperties": false
},
"FEEDER_AUDIT": {
"type": "object",
"required": [
"originating_system_audit"
],
"properties": {
"originating_system_item_ids": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_IDENTIFIER"
}
},
"feeder_system_item_ids": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_IDENTIFIER"
}
},
"original_content": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_PARSABLE",
"DV_MULTIMEDIA"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_PARSABLE"
}
}
},
"then": {
"$ref": "#/definitions/DV_PARSABLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_MULTIMEDIA"
}
}
},
"then": {
"$ref": "#/definitions/DV_MULTIMEDIA"
}
}
]
},
"originating_system_audit": {
"$ref": "#/definitions/FEEDER_AUDIT_DETAILS"
},
"feeder_system_audit": {
"$ref": "#/definitions/FEEDER_AUDIT_DETAILS"
},
"_type": {
"type": "string",
"pattern": "^FEEDER_AUDIT(<.*>)?$"
}
},
"additionalProperties": false
},
"EVENT_CONTEXT": {
"type": "object",
"required": [
"start_time",
"setting"
],
"properties": {
"health_care_facility": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_RELATED",
"PARTY_IDENTIFIED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
}
]
},
"start_time": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"end_time": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"participations": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTICIPATION"
},
"minItems": 1
},
"location": {
"type": "string"
},
"setting": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"other_context": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^EVENT_CONTEXT(<.*>)?$"
}
},
"additionalProperties": false
},
"ITEM_SINGLE": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"item"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"item": {
"$ref": "#/definitions/ELEMENT"
},
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
},
"additionalProperties": false
},
"SET": {
"type": "object",
"required": [
],
"properties": {
"_type": {
"type": "string",
"pattern": "^SET(<.*>)?$"
}
}
},
"DV_PROPORTION": {
"type": "object",
"required": [
"numerator",
"denominator",
"type"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
},
"minItems": 1
},
"magnitude_status": {
"type": "string"
},
"accuracy": {
"type": "number"
},
"accuracy_is_percent": {
"type": "boolean"
},
"numerator": {
"type": "number"
},
"denominator": {
"type": "number"
},
"type": {
"type": "integer"
},
"precision": {
"type": "integer"
},
"_type": {
"type": "string",
"pattern": "^DV_PROPORTION(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_QUANTITY": {
"type": "object",
"required": [
"magnitude",
"units"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
}
},
"magnitude_status": {
"type": "string"
},
"accuracy": {
"type": "number"
},
"accuracy_is_percent": {
"type": "boolean"
},
"magnitude": {
"type": "number"
},
"property": {
"$ref": "#/definitions/CODE_PHRASE"
},
"units": {
"type": "string"
},
"units_system": {
"type": "string"
},
"units_display_name": {
"type": "string"
},
"precision": {
"type": "integer"
},
"_type": {
"type": "string",
"pattern": "^DV_QUANTITY(<.*>)?$"
}
},
"additionalProperties": false
},
"X_VERSIONED_COMPOSITION": {
"type": "object",
"required": [
"uid",
"owner_id",
"time_created",
"total_version_count",
"extract_version_count"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"owner_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"total_version_count": {
"type": "integer"
},
"extract_version_count": {
"type": "integer"
},
"revision_history": {
"$ref": "#/definitions/REVISION_HISTORY"
},
"versions": {
"type": "array",
"items": {
"$ref": "#/definitions/ORIGINAL_VERSION"
}
},
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_COMPOSITION(<.*>)?$"
}
},
"additionalProperties": false
},
"X_VERSIONED_FOLDER": {
"type": "object",
"required": [
"uid",
"owner_id",
"time_created",
"total_version_count",
"extract_version_count"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"owner_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"total_version_count": {
"type": "integer"
},
"extract_version_count": {
"type": "integer"
},
"revision_history": {
"$ref": "#/definitions/REVISION_HISTORY"
},
"versions": {
"type": "array",
"items": {
"$ref": "#/definitions/ORIGINAL_VERSION"
}
},
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_FOLDER(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_ORDINAL": {
"type": "object",
"required": [
"value",
"symbol"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
},
"minItems": 1
},
"value": {
"type": "integer"
},
"symbol": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"_type": {
"type": "string",
"pattern": "^DV_ORDINAL(<.*>)?$"
}
},
"additionalProperties": false
},
"URI": {
"type": "object",
"required": [
],
"properties": {
"_type": {
"type": "string",
"pattern": "^URI(<.*>)?$"
}
}
},
"SYNC_EXTRACT": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"specification"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"specification": {
"$ref": "#/definitions/SYNC_EXTRACT_SPEC"
},
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/X_CONTRIBUTION"
}
},
"_type": {
"type": "string",
"pattern": "^SYNC_EXTRACT(<.*>)?$"
}
},
"additionalProperties": false
},
"TERMINOLOGY_CODE": {
"type": "object",
"required": [
"terminology_id",
"code_string",
"uri"
],
"properties": {
"terminology_id": {
"type": "string"
},
"terminology_version": {
"type": "string"
},
"code_string": {
"type": "string"
},
"uri": {
"$ref": "#/definitions/URI"
},
"_type": {
"type": "string",
"pattern": "^TERMINOLOGY_CODE(<.*>)?$"
}
},
"additionalProperties": false
},
"ROLE": {
"type": "object",
"required": [
"uid",
"archetype_node_id",
"name",
"identities",
"performer"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"identities": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_IDENTITY"
},
"minItems": 1
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/definitions/CONTACT"
},
"minItems": 1
},
"relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_RELATIONSHIP"
},
"minItems": 1
},
"reverse_relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/LOCATABLE_REF"
},
"minItems": 1
},
"performer": {
"$ref": "#/definitions/PARTY_REF"
},
"capabilities": {
"type": "array",
"items": {
"$ref": "#/definitions/CAPABILITY"
},
"minItems": 1
},
"time_validity": {
"$ref": "#/definitions/DV_INTERVAL"
},
"_type": {
"type": "string",
"pattern": "^ROLE(<.*>)?$"
}
},
"additionalProperties": false
},
"AGENT": {
"type": "object",
"required": [
"uid",
"archetype_node_id",
"name",
"identities"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"identities": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_IDENTITY"
},
"minItems": 1
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/definitions/CONTACT"
},
"minItems": 1
},
"relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_RELATIONSHIP"
},
"minItems": 1
},
"reverse_relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/LOCATABLE_REF"
},
"minItems": 1
},
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_REF"
},
"minItems": 1
},
"languages": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^AGENT(<.*>)?$"
}
},
"additionalProperties": false
},
"INTERNET_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^INTERNET_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"MESSAGE": {
"type": "object",
"required": [
"author",
"audit",
"content"
],
"properties": {
"author": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"audit": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"ATTESTATION",
"AUDIT_DETAILS"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ATTESTATION"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ATTESTATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "AUDIT_DETAILS"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
}
]
},
"content": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"SYNC_EXTRACT",
"SYNC_EXTRACT_REQUEST"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "SYNC_EXTRACT"
}
}
},
"then": {
"$ref": "#/definitions/SYNC_EXTRACT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "SYNC_EXTRACT_REQUEST"
}
}
},
"then": {
"$ref": "#/definitions/SYNC_EXTRACT_REQUEST"
}
}
]
},
"signature": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^MESSAGE(<.*>)?$"
}
},
"additionalProperties": false
},
"GROUP": {
"type": "object",
"required": [
"uid",
"archetype_node_id",
"name",
"identities"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"identities": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_IDENTITY"
},
"minItems": 1
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/definitions/CONTACT"
},
"minItems": 1
},
"relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_RELATIONSHIP"
},
"minItems": 1
},
"reverse_relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/LOCATABLE_REF"
},
"minItems": 1
},
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_REF"
},
"minItems": 1
},
"languages": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^GROUP(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_ENTITY_MANIFEST": {
"type": "object",
"required": [
"extract_id_key"
],
"properties": {
"extract_id_key": {
"type": "string"
},
"ehr_id": {
"type": "string"
},
"subject_id": {
"type": "string"
},
"other_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"item_list": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
}
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_ENTITY_MANIFEST(<.*>)?$"
}
},
"additionalProperties": false
},
"INTERVAL": {
"type": "object",
"required": [
"lower_unbounded",
"upper_unbounded",
"lower_included",
"upper_included"
],
"properties": {
"lower": {
"type": "object"
},
"upper": {
"type": "object"
},
"lower_unbounded": {
"type": "boolean"
},
"upper_unbounded": {
"type": "boolean"
},
"lower_included": {
"type": "boolean"
},
"upper_included": {
"type": "boolean"
},
"_type": {
"type": "string",
"pattern": "^INTERVAL(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_ACTION_REQUEST": {
"type": "object",
"required": [
"uid",
"archetype_node_id",
"name",
"request_id",
"action"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"request_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"action": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_ACTION_REQUEST(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_SELF": {
"type": "object",
"required": [
],
"properties": {
"external_ref": {
"$ref": "#/definitions/PARTY_REF"
},
"_type": {
"type": "string",
"pattern": "^PARTY_SELF(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_MULTIMEDIA": {
"type": "object",
"required": [
"media_type",
"size"
],
"properties": {
"charset": {
"$ref": "#/definitions/CODE_PHRASE"
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"alternate_text": {
"type": "string"
},
"uri": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_EHR_URI",
"DV_URI"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_EHR_URI"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_EHR_URI"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_URI"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_URI"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_URI"
}
}
]
},
"data": {
"type": "string",
"contentEncoding": "base64"
},
"media_type": {
"$ref": "#/definitions/CODE_PHRASE"
},
"compression_algorithm": {
"$ref": "#/definitions/CODE_PHRASE"
},
"integrity_check": {
"type": "string",
"contentEncoding": "base64"
},
"integrity_check_algorithm": {
"$ref": "#/definitions/CODE_PHRASE"
},
"thumbnail": {
"$ref": "#/definitions/DV_MULTIMEDIA"
},
"size": {
"type": "integer"
},
"_type": {
"type": "string",
"pattern": "^DV_MULTIMEDIA(<.*>)?$"
}
},
"additionalProperties": false
},
"X_CONTRIBUTION": {
"type": "object",
"required": [
"uid",
"audit"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"audit": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"ATTESTATION",
"AUDIT_DETAILS"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ATTESTATION"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ATTESTATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "AUDIT_DETAILS"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
}
]
},
"versions": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
]
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ORIGINAL_VERSION<.*>$"
}
}
},
"then": {
"$ref": "#/definitions/ORIGINAL_VERSION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^IMPORTED_VERSION<.*>$"
}
}
},
"then": {
"$ref": "#/definitions/IMPORTED_VERSION"
}
}
]
}
},
"_type": {
"type": "string",
"pattern": "^X_CONTRIBUTION(<.*>)?$"
}
},
"additionalProperties": false
},
"X_VERSIONED_EHR_ACCESS": {
"type": "object",
"required": [
"uid",
"owner_id",
"time_created",
"total_version_count",
"extract_version_count"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"owner_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"total_version_count": {
"type": "integer"
},
"extract_version_count": {
"type": "integer"
},
"revision_history": {
"$ref": "#/definitions/REVISION_HISTORY"
},
"versions": {
"type": "array",
"items": {
"$ref": "#/definitions/ORIGINAL_VERSION"
}
},
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_EHR_ACCESS(<.*>)?$"
}
},
"additionalProperties": false
},
"VERSION_TREE_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^VERSION_TREE_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_PARAGRAPH": {
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^DV_PARAGRAPH(<.*>)?$"
}
},
"additionalProperties": false
},
"REFERENCE_RANGE": {
"type": "object",
"required": [
"range",
"meaning"
],
"properties": {
"range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"meaning": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^REFERENCE_RANGE(<.*>)?$"
}
},
"additionalProperties": false
},
"ITEM_TREE": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"items": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"CLUSTER",
"ELEMENT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "CLUSTER"
}
}
},
"then": {
"$ref": "#/definitions/CLUSTER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ELEMENT"
}
}
},
"then": {
"$ref": "#/definitions/ELEMENT"
}
}
]
}
},
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
},
"additionalProperties": false
},
"ELEMENT": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"null_flavour": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"value": {
"allOf": [
{
"required": [
"_type"
]
},
{
"if": {
"properties": {
"_type": {
"const": "DV_GENERAL_TIME_SPECIFICATION"
}
}
},
"then": {
"$ref": "#/definitions/DV_GENERAL_TIME_SPECIFICATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_PERIODIC_TIME_SPECIFICATION"
}
}
},
"then": {
"$ref": "#/definitions/DV_PERIODIC_TIME_SPECIFICATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_ORDINAL"
}
}
},
"then": {
"$ref": "#/definitions/DV_ORDINAL"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_SCALE"
}
}
},
"then": {
"$ref": "#/definitions/DV_SCALE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_COUNT"
}
}
},
"then": {
"$ref": "#/definitions/DV_COUNT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_DURATION"
}
}
},
"then": {
"$ref": "#/definitions/DV_DURATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_PROPORTION"
}
}
},
"then": {
"$ref": "#/definitions/DV_PROPORTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_QUANTITY"
}
}
},
"then": {
"$ref": "#/definitions/DV_QUANTITY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TIME"
}
}
},
"then": {
"$ref": "#/definitions/DV_TIME"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_DATE_TIME"
}
}
},
"then": {
"$ref": "#/definitions/DV_DATE_TIME"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_DATE"
}
}
},
"then": {
"$ref": "#/definitions/DV_DATE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_PARAGRAPH"
}
}
},
"then": {
"$ref": "#/definitions/DV_PARAGRAPH"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_STATE"
}
}
},
"then": {
"$ref": "#/definitions/DV_STATE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_INTERVAL<.*>$"
}
}
},
"then": {
"$ref": "#/definitions/DV_INTERVAL"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_PARSABLE"
}
}
},
"then": {
"$ref": "#/definitions/DV_PARSABLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_MULTIMEDIA"
}
}
},
"then": {
"$ref": "#/definitions/DV_MULTIMEDIA"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_IDENTIFIER"
}
}
},
"then": {
"$ref": "#/definitions/DV_IDENTIFIER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_BOOLEAN"
}
}
},
"then": {
"$ref": "#/definitions/DV_BOOLEAN"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_URI"
}
}
},
"then": {
"$ref": "#/definitions/DV_URI"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_EHR_URI"
}
}
},
"then": {
"$ref": "#/definitions/DV_EHR_URI"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
}
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
}
]
},
"null_reason": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^ELEMENT(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_SPEC": {
"type": "object",
"required": [
"extract_type",
"include_multimedia",
"priority",
"link_depth",
"manifest"
],
"properties": {
"extract_type": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"include_multimedia": {
"type": "boolean"
},
"priority": {
"type": "integer"
},
"link_depth": {
"type": "integer"
},
"criteria": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_PARSABLE"
}
},
"manifest": {
"$ref": "#/definitions/EXTRACT_MANIFEST"
},
"version_spec": {
"$ref": "#/definitions/EXTRACT_VERSION_SPEC"
},
"other_details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_SPEC(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_GENERAL_TIME_SPECIFICATION": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"$ref": "#/definitions/DV_PARSABLE"
},
"_type": {
"type": "string",
"pattern": "^DV_GENERAL_TIME_SPECIFICATION(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_DATE": {
"type": "object",
"required": [
"value"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
},
"minItems": 1
},
"magnitude_status": {
"type": "string"
},
"accuracy": {
"$ref": "#/definitions/DV_DURATION"
},
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DV_DATE(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_STATE": {
"type": "object",
"required": [
"value",
"is_terminal"
],
"properties": {
"value": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"is_terminal": {
"type": "boolean"
},
"_type": {
"type": "string",
"pattern": "^DV_STATE(<.*>)?$"
}
},
"additionalProperties": false
},
"ITEM_LIST": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/ELEMENT"
}
},
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
},
"additionalProperties": false
},
"DURATION": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DURATION(<.*>)?$"
}
},
"additionalProperties": false
},
"HISTORY": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"origin"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"origin": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"period": {
"$ref": "#/definitions/DV_DURATION"
},
"duration": {
"$ref": "#/definitions/DV_DURATION"
},
"summary": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"events": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
]
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^POINT_EVENT<.*>$"
}
}
},
"then": {
"$ref": "#/definitions/POINT_EVENT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^INTERVAL_EVENT<.*>$"
}
}
},
"then": {
"$ref": "#/definitions/INTERVAL_EVENT"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^HISTORY(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_PERIODIC_TIME_SPECIFICATION": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"$ref": "#/definitions/DV_PARSABLE"
},
"_type": {
"type": "string",
"pattern": "^DV_PERIODIC_TIME_SPECIFICATION(<.*>)?$"
}
},
"additionalProperties": false
},
"SYNC_EXTRACT_REQUEST": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"specification"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"specification": {
"$ref": "#/definitions/SYNC_EXTRACT_SPEC"
},
"_type": {
"type": "string",
"pattern": "^SYNC_EXTRACT_REQUEST(<.*>)?$"
}
},
"additionalProperties": false
},
"CONTACT": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"time_validity": {
"$ref": "#/definitions/DV_INTERVAL"
},
"addresses": {
"type": "array",
"items": {
"$ref": "#/definitions/ADDRESS"
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^CONTACT(<.*>)?$"
}
},
"additionalProperties": false
},
"RESOURCE_DESCRIPTION_ITEM": {
"type": "object",
"required": [
"language",
"purpose",
"other_details"
],
"properties": {
"language": {
"$ref": "#/definitions/TERMINOLOGY_CODE"
},
"purpose": {
"type": "string"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"use": {
"type": "string"
},
"misuse": {
"type": "string"
},
"copyright": {
"type": "string"
},
"original_resource_uri": {
"type": "array",
"items": {
"type": "object"
}
},
"other_details": {
"type": "object"
},
"_type": {
"type": "string",
"pattern": "^RESOURCE_DESCRIPTION_ITEM(<.*>)?$"
}
},
"additionalProperties": false
},
"ARRAY": {
"type": "object",
"required": [
],
"properties": {
"_type": {
"type": "string",
"pattern": "^ARRAY(<.*>)?$"
}
}
},
"TERM_MAPPING": {
"type": "object",
"required": [
"match",
"target"
],
"properties": {
"match": {
"type": "string"
},
"purpose": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"target": {
"$ref": "#/definitions/CODE_PHRASE"
},
"_type": {
"type": "string",
"pattern": "^TERM_MAPPING(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_UPDATE_SPEC": {
"type": "object",
"required": [
"persist_in_server",
"update_method"
],
"properties": {
"persist_in_server": {
"type": "boolean"
},
"trigger_events": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"minItems": 1
},
"repeat_period": {
"$ref": "#/definitions/DV_DURATION"
},
"update_method": {
"$ref": "#/definitions/CODE_PHRASE"
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_UPDATE_SPEC(<.*>)?$"
}
},
"additionalProperties": false
},
"OBSERVATION": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"language",
"encoding",
"subject",
"data"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"subject": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"provider": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"other_participations": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTICIPATION"
}
},
"workflow_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"protocol": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"guideline_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"data": {
"$ref": "#/definitions/HISTORY"
},
"state": {
"$ref": "#/definitions/HISTORY"
},
"_type": {
"type": "string",
"pattern": "^OBSERVATION(<.*>)?$"
}
},
"additionalProperties": false
},
"X_VERSIONED_OBJECT": {
"type": "object",
"required": [
"uid",
"owner_id",
"time_created",
"total_version_count",
"extract_version_count"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"owner_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"total_version_count": {
"type": "integer"
},
"extract_version_count": {
"type": "integer"
},
"revision_history": {
"$ref": "#/definitions/REVISION_HISTORY"
},
"versions": {
"type": "array",
"items": {
"$ref": "#/definitions/ORIGINAL_VERSION"
}
},
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_OBJECT(<.*>)?$"
}
},
"additionalProperties": false
},
"ADDRESSED_MESSAGE": {
"type": "object",
"required": [
"sender",
"sender_reference"
],
"properties": {
"sender": {
"type": "string"
},
"sender_reference": {
"type": "string"
},
"addressees": {
"type": "array",
"items": {
"type": "string"
}
},
"urgency": {
"type": "integer"
},
"message": {
"$ref": "#/definitions/MESSAGE"
},
"_type": {
"type": "string",
"pattern": "^ADDRESSED_MESSAGE(<.*>)?$"
}
},
"additionalProperties": false
},
"UUID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^UUID(<.*>)?$"
}
},
"additionalProperties": false
},
"ISM_TRANSITION": {
"type": "object",
"required": [
"current_state"
],
"properties": {
"current_state": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"transition": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"careflow_step": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"reason": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
}
},
"_type": {
"type": "string",
"pattern": "^ISM_TRANSITION(<.*>)?$"
}
},
"additionalProperties": false
},
"X_VERSIONED_EHR_STATUS": {
"type": "object",
"required": [
"uid",
"owner_id",
"time_created",
"total_version_count",
"extract_version_count"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"owner_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"total_version_count": {
"type": "integer"
},
"extract_version_count": {
"type": "integer"
},
"revision_history": {
"$ref": "#/definitions/REVISION_HISTORY"
},
"versions": {
"type": "array",
"items": {
"$ref": "#/definitions/ORIGINAL_VERSION"
}
},
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_EHR_STATUS(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTICIPATION": {
"type": "object",
"required": [
"function",
"performer"
],
"properties": {
"function": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"time": {
"$ref": "#/definitions/DV_INTERVAL"
},
"mode": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"performer": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^PARTICIPATION(<.*>)?$"
}
},
"additionalProperties": false
},
"FOLDER": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"folders": {
"type": "array",
"items": {
"$ref": "#/definitions/FOLDER"
},
"minItems": 1
},
"items": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
}
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^FOLDER(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"time_created",
"system_id",
"sequence_nr"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"request_id": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"system_id": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"sequence_nr": {
"type": "integer"
},
"specification": {
"$ref": "#/definitions/EXTRACT_SPEC"
},
"chapters": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"EXTRACT_ENTITY_CHAPTER",
"EXTRACT_CHAPTER"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_ENTITY_CHAPTER"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/EXTRACT_ENTITY_CHAPTER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_CHAPTER"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/EXTRACT_CHAPTER"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/EXTRACT_CHAPTER"
}
}
]
}
},
"participations": {
"type": "array",
"items": {
"$ref": "#/definitions/EXTRACT_PARTICIPATION"
}
},
"_type": {
"type": "string",
"pattern": "^EXTRACT(<.*>)?$"
}
},
"additionalProperties": false
},
"VALIDITY_KIND": {
"type": "object",
"required": [
],
"properties": {
"_type": {
"type": "string",
"pattern": "^VALIDITY_KIND(<.*>)?$"
}
}
},
"OBJECT_VERSION_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_INTERVAL": {
"type": "object",
"required": [
"lower_unbounded",
"upper_unbounded",
"lower_included",
"upper_included"
],
"properties": {
"lower": {
"type": "object"
},
"upper": {
"type": "object"
},
"lower_unbounded": {
"type": "boolean"
},
"upper_unbounded": {
"type": "boolean"
},
"lower_included": {
"type": "boolean"
},
"upper_included": {
"type": "boolean"
},
"_type": {
"type": "string",
"pattern": "^DV_INTERVAL(<.*>)?$"
}
},
"additionalProperties": false
},
"ORGANISATION": {
"type": "object",
"required": [
"uid",
"archetype_node_id",
"name",
"identities"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"identities": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_IDENTITY"
},
"minItems": 1
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/definitions/CONTACT"
},
"minItems": 1
},
"relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_RELATIONSHIP"
},
"minItems": 1
},
"reverse_relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/LOCATABLE_REF"
},
"minItems": 1
},
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_REF"
},
"minItems": 1
},
"languages": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^ORGANISATION(<.*>)?$"
}
},
"additionalProperties": false
},
"VERSIONED_OBJECT": {
"type": "object",
"required": [
"uid",
"owner_id",
"time_created"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"owner_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"_type": {
"type": "string",
"pattern": "^VERSIONED_OBJECT(<.*>)?$"
}
},
"additionalProperties": false
},
"GENERIC_CONTENT_ITEM": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"is_primary"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"is_primary": {
"type": "boolean"
},
"is_changed": {
"type": "boolean"
},
"is_masked": {
"type": "boolean"
},
"item": {
"allOf": [
{
"required": [
"_type"
]
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTITY"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTITY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_CHAPTER"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_CHAPTER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_ENTITY_CHAPTER"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_ENTITY_CHAPTER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "CAPABILITY"
}
}
},
"then": {
"$ref": "#/definitions/CAPABILITY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "CLUSTER"
}
}
},
"then": {
"$ref": "#/definitions/CLUSTER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ELEMENT"
}
}
},
"then": {
"$ref": "#/definitions/ELEMENT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_REQUEST"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_REQUEST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ROLE"
}
}
},
"then": {
"$ref": "#/definitions/ROLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PERSON"
}
}
},
"then": {
"$ref": "#/definitions/PERSON"
}
},
{
"if": {
"properties": {
"_type": {
"const": "AGENT"
}
}
},
"then": {
"$ref": "#/definitions/AGENT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GROUP"
}
}
},
"then": {
"$ref": "#/definitions/GROUP"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ORGANISATION"
}
}
},
"then": {
"$ref": "#/definitions/ORGANISATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "INSTRUCTION"
}
}
},
"then": {
"$ref": "#/definitions/INSTRUCTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EVALUATION"
}
}
},
"then": {
"$ref": "#/definitions/EVALUATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBSERVATION"
}
}
},
"then": {
"$ref": "#/definitions/OBSERVATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACTION"
}
}
},
"then": {
"$ref": "#/definitions/ACTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ADMIN_ENTRY"
}
}
},
"then": {
"$ref": "#/definitions/ADMIN_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_ENTRY"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "SECTION"
}
}
},
"then": {
"$ref": "#/definitions/SECTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_ACTION_REQUEST"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_ACTION_REQUEST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HISTORY<.*>$"
}
}
},
"then": {
"$ref": "#/definitions/HISTORY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "CONTACT"
}
}
},
"then": {
"$ref": "#/definitions/CONTACT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^POINT_EVENT<.*>$"
}
}
},
"then": {
"$ref": "#/definitions/POINT_EVENT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^INTERVAL_EVENT<.*>$"
}
}
},
"then": {
"$ref": "#/definitions/INTERVAL_EVENT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_FOLDER"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_CONTENT_ITEM"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_CONTENT_ITEM"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OPENEHR_CONTENT_ITEM"
}
}
},
"then": {
"$ref": "#/definitions/OPENEHR_CONTENT_ITEM"
}
},
{
"if": {
"properties": {
"_type": {
"const": "FOLDER"
}
}
},
"then": {
"$ref": "#/definitions/FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ADDRESS"
}
}
},
"then": {
"$ref": "#/definitions/ADDRESS"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATIONSHIP"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATIONSHIP"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EHR_ACCESS"
}
}
},
"then": {
"$ref": "#/definitions/EHR_ACCESS"
}
},
{
"if": {
"properties": {
"_type": {
"const": "SYNC_EXTRACT"
}
}
},
"then": {
"$ref": "#/definitions/SYNC_EXTRACT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "SYNC_EXTRACT_REQUEST"
}
}
},
"then": {
"$ref": "#/definitions/SYNC_EXTRACT_REQUEST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "COMPOSITION"
}
}
},
"then": {
"$ref": "#/definitions/COMPOSITION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EHR_STATUS"
}
}
},
"then": {
"$ref": "#/definitions/EHR_STATUS"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACTIVITY"
}
}
},
"then": {
"$ref": "#/definitions/ACTIVITY"
}
}
]
},
"item_type": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"item_type_version": {
"type": "string"
},
"author": {
"type": "string"
},
"creation_time": {
"type": "string",
"format": "date-time"
},
"authoriser": {
"type": "string"
},
"authorisation_time": {
"type": "string",
"format": "date-time"
},
"item_status": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"version_id": {
"type": "string"
},
"version_set_id": {
"type": "string"
},
"system_id": {
"type": "string"
},
"other_details": {
"type": "array",
"items": {
"type": "string"
}
},
"_type": {
"type": "string",
"pattern": "^GENERIC_CONTENT_ITEM(<.*>)?$"
}
},
"additionalProperties": false
},
"DATE": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DATE(<.*>)?$"
}
},
"additionalProperties": false
},
"ITEM_TABLE": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"rows": {
"type": "array",
"items": {
"$ref": "#/definitions/CLUSTER"
}
},
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
},
"additionalProperties": false
},
"INTERVAL_EVENT": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"time",
"data",
"width",
"math_function"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"time": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"state": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"data": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"width": {
"$ref": "#/definitions/DV_DURATION"
},
"sample_count": {
"type": "integer"
},
"math_function": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"_type": {
"type": "string",
"pattern": "^INTERVAL_EVENT(<.*>)?$"
}
},
"additionalProperties": false
},
"ATTESTATION": {
"type": "object",
"required": [
"system_id",
"time_committed",
"change_type",
"committer",
"reason",
"is_pending"
],
"properties": {
"system_id": {
"type": "string"
},
"time_committed": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"change_type": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"description": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"committer": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"attested_view": {
"$ref": "#/definitions/DV_MULTIMEDIA"
},
"proof": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_EHR_URI"
}
},
"reason": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"is_pending": {
"type": "boolean"
},
"_type": {
"type": "string",
"pattern": "^ATTESTATION(<.*>)?$"
}
},
"additionalProperties": false
},
"ADDRESS": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"details"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^ADDRESS(<.*>)?$"
}
},
"additionalProperties": false
},
"REVISION_HISTORY": {
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/REVISION_HISTORY_ITEM"
}
},
"_type": {
"type": "string",
"pattern": "^REVISION_HISTORY(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_IDENTIFIER": {
"type": "object",
"required": [
"id"
],
"properties": {
"issuer": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"assigner": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DV_IDENTIFIER(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_CODED_TEXT": {
"type": "object",
"required": [
"value",
"defining_code"
],
"properties": {
"value": {
"type": "string"
},
"hyperlink": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_EHR_URI",
"DV_URI"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_EHR_URI"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_EHR_URI"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_URI"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_URI"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_URI"
}
}
]
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"formatting": {
"type": "string"
},
"mappings": {
"type": "array",
"items": {
"$ref": "#/definitions/TERM_MAPPING"
},
"minItems": 1
},
"defining_code": {
"$ref": "#/definitions/CODE_PHRASE"
},
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"additionalProperties": false
},
"DATE_TIME": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DATE_TIME(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_RELATIONSHIP": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"source",
"target"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"source": {
"$ref": "#/definitions/PARTY_REF"
},
"target": {
"$ref": "#/definitions/PARTY_REF"
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"time_validity": {
"$ref": "#/definitions/DV_INTERVAL"
},
"_type": {
"type": "string",
"pattern": "^PARTY_RELATIONSHIP(<.*>)?$"
}
},
"additionalProperties": false
},
"LOCATABLE_REF": {
"type": "object",
"required": [
"id",
"namespace",
"type"
],
"properties": {
"id": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"namespace": {
"type": "string"
},
"type": {
"type": "string"
},
"path": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^LOCATABLE_REF(<.*>)?$"
}
},
"additionalProperties": false
},
"LIST": {
"type": "object",
"required": [
],
"properties": {
"_type": {
"type": "string",
"pattern": "^LIST(<.*>)?$"
}
}
},
"EHR_ACCESS": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"settings": {
"type": "object"
},
"_type": {
"type": "string",
"pattern": "^EHR_ACCESS(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_EHR_URI": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string",
"format": "uri-reference"
},
"_type": {
"type": "string",
"pattern": "^DV_EHR_URI(<.*>)?$"
}
},
"additionalProperties": false
},
"TERMINOLOGY_TERM": {
"type": "object",
"required": [
"text",
"concept"
],
"properties": {
"text": {
"type": "string"
},
"concept": {
"$ref": "#/definitions/TERMINOLOGY_CODE"
},
"_type": {
"type": "string",
"pattern": "^TERMINOLOGY_TERM(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_SCALE": {
"type": "object",
"required": [
"value",
"symbol"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
},
"minItems": 1
},
"value": {
"type": "number"
},
"symbol": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"_type": {
"type": "string",
"pattern": "^DV_SCALE(<.*>)?$"
}
},
"additionalProperties": false
},
"ARCHETYPE_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^ARCHETYPE_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_REF": {
"type": "object",
"required": [
"id",
"namespace",
"type"
],
"properties": {
"id": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"TERMINOLOGY_ID",
"GENERIC_ID",
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID",
"ARCHETYPE_ID",
"TEMPLATE_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "TERMINOLOGY_ID"
}
}
},
"then": {
"$ref": "#/definitions/TERMINOLOGY_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_ID"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ARCHETYPE_ID"
}
}
},
"then": {
"$ref": "#/definitions/ARCHETYPE_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "TEMPLATE_ID"
}
}
},
"then": {
"$ref": "#/definitions/TEMPLATE_ID"
}
}
]
},
"namespace": {
"type": "string"
},
"type": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^PARTY_REF(<.*>)?$"
}
},
"additionalProperties": false
},
"TEMPLATE_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^TEMPLATE_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"ADMIN_ENTRY": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"language",
"encoding",
"subject",
"data"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"subject": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"provider": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"other_participations": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTICIPATION"
}
},
"workflow_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"data": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^ADMIN_ENTRY(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_IDENTIFIED": {
"type": "object",
"required": [
],
"properties": {
"external_ref": {
"$ref": "#/definitions/PARTY_REF"
},
"name": {
"type": "string"
},
"identifiers": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_IDENTIFIER"
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^PARTY_IDENTIFIED(<.*>)?$"
}
},
"additionalProperties": false
},
"OPENEHR_CONTENT_ITEM": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"is_primary"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"is_primary": {
"type": "boolean"
},
"is_changed": {
"type": "boolean"
},
"is_masked": {
"type": "boolean"
},
"item": {
"allOf": [
{
},
{
"if": {
"properties": {
"_type": {
"const": "X_VERSIONED_PARTY"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_PARTY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "X_VERSIONED_COMPOSITION"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_COMPOSITION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "X_VERSIONED_FOLDER"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "X_VERSIONED_EHR_ACCESS"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_EHR_ACCESS"
}
},
{
"if": {
"properties": {
"_type": {
"const": "X_VERSIONED_EHR_STATUS"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_EHR_STATUS"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_OBJECT<.*>$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_OBJECT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/X_VERSIONED_OBJECT"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^OPENEHR_CONTENT_ITEM(<.*>)?$"
}
},
"additionalProperties": false
},
"COMPOSITION": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"language",
"territory",
"category",
"composer"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"territory": {
"$ref": "#/definitions/CODE_PHRASE"
},
"category": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"composer": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"context": {
"$ref": "#/definitions/EVENT_CONTEXT"
},
"content": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"INSTRUCTION",
"EVALUATION",
"OBSERVATION",
"ACTION",
"ADMIN_ENTRY",
"GENERIC_ENTRY",
"SECTION"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "INSTRUCTION"
}
}
},
"then": {
"$ref": "#/definitions/INSTRUCTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EVALUATION"
}
}
},
"then": {
"$ref": "#/definitions/EVALUATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBSERVATION"
}
}
},
"then": {
"$ref": "#/definitions/OBSERVATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACTION"
}
}
},
"then": {
"$ref": "#/definitions/ACTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ADMIN_ENTRY"
}
}
},
"then": {
"$ref": "#/definitions/ADMIN_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_ENTRY"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "SECTION"
}
}
},
"then": {
"$ref": "#/definitions/SECTION"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^COMPOSITION(<.*>)?$"
}
},
"additionalProperties": false
},
"EHR_STATUS": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"subject",
"is_queryable",
"is_modifiable"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"subject": {
"$ref": "#/definitions/PARTY_SELF"
},
"is_queryable": {
"type": "boolean"
},
"is_modifiable": {
"type": "boolean"
},
"other_details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^EHR_STATUS(<.*>)?$"
}
},
"additionalProperties": false
},
"LINK": {
"type": "object",
"required": [
"meaning",
"type",
"target"
],
"properties": {
"meaning": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"type": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"target": {
"$ref": "#/definitions/DV_EHR_URI"
},
"_type": {
"type": "string",
"pattern": "^LINK(<.*>)?$"
}
},
"additionalProperties": false
},
"TRANSLATION_DETAILS": {
"type": "object",
"required": [
"language",
"author"
],
"properties": {
"language": {
"$ref": "#/definitions/TERMINOLOGY_CODE"
},
"author": {
"type": "object"
},
"accreditation": {
"type": "string"
},
"other_details": {
"type": "object"
},
"_type": {
"type": "string",
"pattern": "^TRANSLATION_DETAILS(<.*>)?$"
}
},
"additionalProperties": false
},
"ACCESS_GROUP_REF": {
"type": "object",
"required": [
"id",
"namespace",
"type"
],
"properties": {
"id": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"TERMINOLOGY_ID",
"GENERIC_ID",
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID",
"ARCHETYPE_ID",
"TEMPLATE_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "TERMINOLOGY_ID"
}
}
},
"then": {
"$ref": "#/definitions/TERMINOLOGY_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_ID"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ARCHETYPE_ID"
}
}
},
"then": {
"$ref": "#/definitions/ARCHETYPE_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "TEMPLATE_ID"
}
}
},
"then": {
"$ref": "#/definitions/TEMPLATE_ID"
}
}
]
},
"namespace": {
"type": "string"
},
"type": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^ACCESS_GROUP_REF(<.*>)?$"
}
},
"additionalProperties": false
},
"OBJECT_REF": {
"type": "object",
"required": [
"id",
"namespace",
"type"
],
"properties": {
"id": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"TERMINOLOGY_ID",
"GENERIC_ID",
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID",
"ARCHETYPE_ID",
"TEMPLATE_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "TERMINOLOGY_ID"
}
}
},
"then": {
"$ref": "#/definitions/TERMINOLOGY_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_ID"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ARCHETYPE_ID"
}
}
},
"then": {
"$ref": "#/definitions/ARCHETYPE_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "TEMPLATE_ID"
}
}
},
"then": {
"$ref": "#/definitions/TEMPLATE_ID"
}
}
]
},
"namespace": {
"type": "string"
},
"type": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^OBJECT_REF(<.*>)?$"
}
},
"additionalProperties": false
},
"GENERIC_ENTRY": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"data"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"data": {
"$ref": "#/definitions/ITEM_TREE"
},
"_type": {
"type": "string",
"pattern": "^GENERIC_ENTRY(<.*>)?$"
}
},
"additionalProperties": false
},
"TIME": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^TIME(<.*>)?$"
}
},
"additionalProperties": false
},
"IMPORTED_VERSION": {
"type": "object",
"required": [
"contribution",
"commit_audit",
"item"
],
"properties": {
"contribution": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"commit_audit": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"ATTESTATION",
"AUDIT_DETAILS"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ATTESTATION"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ATTESTATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "AUDIT_DETAILS"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/AUDIT_DETAILS"
}
}
]
},
"signature": {
"type": "string"
},
"item": {
"$ref": "#/definitions/ORIGINAL_VERSION"
},
"_type": {
"type": "string",
"pattern": "^IMPORTED_VERSION(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_BOOLEAN": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "boolean"
},
"_type": {
"type": "string",
"pattern": "^DV_BOOLEAN(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_URI": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string",
"format": "uri-reference"
},
"_type": {
"type": "string",
"pattern": "^DV_URI(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_TEXT": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"hyperlink": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_EHR_URI",
"DV_URI"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_EHR_URI"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_EHR_URI"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_URI"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_URI"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_URI"
}
}
]
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"formatting": {
"type": "string"
},
"mappings": {
"type": "array",
"items": {
"$ref": "#/definitions/TERM_MAPPING"
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"additionalProperties": false
},
"ACTION": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"language",
"encoding",
"subject",
"time",
"description",
"ism_transition"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"subject": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"provider": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_SELF"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_IDENTIFIED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_RELATED"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"other_participations": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTICIPATION"
}
},
"workflow_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"protocol": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"guideline_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "LOCATABLE_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "PARTY_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACCESS_GROUP_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_REF"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"description": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"ism_transition": {
"$ref": "#/definitions/ISM_TRANSITION"
},
"instruction_details": {
"$ref": "#/definitions/INSTRUCTION_DETAILS"
},
"_type": {
"type": "string",
"pattern": "^ACTION(<.*>)?$"
}
},
"additionalProperties": false
},
"EXTRACT_ENTITY_CHAPTER": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"extract_id_key"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"items": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"EXTRACT_FOLDER",
"GENERIC_CONTENT_ITEM",
"OPENEHR_CONTENT_ITEM"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "EXTRACT_FOLDER"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_CONTENT_ITEM"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_CONTENT_ITEM"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OPENEHR_CONTENT_ITEM"
}
}
},
"then": {
"$ref": "#/definitions/OPENEHR_CONTENT_ITEM"
}
}
]
}
},
"extract_id_key": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^EXTRACT_ENTITY_CHAPTER(<.*>)?$"
}
},
"additionalProperties": false
},
"HIER_OBJECT_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"SECTION": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"items": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"INSTRUCTION",
"EVALUATION",
"OBSERVATION",
"ACTION",
"ADMIN_ENTRY",
"GENERIC_ENTRY",
"SECTION"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "INSTRUCTION"
}
}
},
"then": {
"$ref": "#/definitions/INSTRUCTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "EVALUATION"
}
}
},
"then": {
"$ref": "#/definitions/EVALUATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBSERVATION"
}
}
},
"then": {
"$ref": "#/definitions/OBSERVATION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ACTION"
}
}
},
"then": {
"$ref": "#/definitions/ACTION"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ADMIN_ENTRY"
}
}
},
"then": {
"$ref": "#/definitions/ADMIN_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "GENERIC_ENTRY"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"const": "SECTION"
}
}
},
"then": {
"$ref": "#/definitions/SECTION"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^SECTION(<.*>)?$"
}
},
"additionalProperties": false
},
"ACTIVITY": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"description"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "OBJECT_VERSION_ID"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"const": "HIER_OBJECT_ID"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_CODED_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"const": "DV_TEXT"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"description": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_SINGLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TREE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_LIST"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"const": "ITEM_TABLE"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"timing": {
"$ref": "#/definitions/DV_PARSABLE"
},
"action_archetype_id": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^ACTIVITY(<.*>)?$"
}
},
"additionalProperties": false
}
}
} },
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"identities": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_IDENTITY"
},
"minItems": 1
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/definitions/CONTACT"
},
"minItems": 1
},
"relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_RELATIONSHIP"
},
"minItems": 1
},
"reverse_relationships": {
"type": "array",
"items": {
"$ref": "#/definitions/LOCATABLE_REF"
},
"minItems": 1
},
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTY_REF"
},
"minItems": 1
},
"languages": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^ORGANISATION(<.*>)?$"
}
},
"additionalProperties": false
},
"VERSIONED_OBJECT": {
"type": "object",
"required": [
"uid",
"owner_id",
"time_created"
],
"properties": {
"uid": {
"$ref": "#/definitions/HIER_OBJECT_ID"
},
"owner_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^LOCATABLE_REF(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_REF(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ACCESS_GROUP_REF(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_REF(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"time_created": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"_type": {
"type": "string",
"pattern": "^VERSIONED_OBJECT(<.*>)?$"
}
},
"additionalProperties": false
},
"GENERIC_CONTENT_ITEM": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"is_primary"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"is_primary": {
"type": "boolean"
},
"is_changed": {
"type": "boolean"
},
"is_masked": {
"type": "boolean"
},
"item": {
"allOf": [
{
"required": [
"_type"
]
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_IDENTITY(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTITY"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EXTRACT_CHAPTER(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_CHAPTER"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EXTRACT_ENTITY_CHAPTER(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_ENTITY_CHAPTER"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^CAPABILITY(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/CAPABILITY"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^CLUSTER(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/CLUSTER"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ELEMENT(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ELEMENT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EXTRACT_REQUEST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_REQUEST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ROLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ROLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PERSON(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PERSON"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^AGENT(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/AGENT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^GROUP(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/GROUP"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ORGANISATION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ORGANISATION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^INSTRUCTION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/INSTRUCTION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EVALUATION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EVALUATION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBSERVATION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBSERVATION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ACTION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ACTION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ADMIN_ENTRY(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ADMIN_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^GENERIC_ENTRY(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^SECTION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/SECTION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EXTRACT_ACTION_REQUEST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_ACTION_REQUEST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HISTORY(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HISTORY"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^CONTACT(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/CONTACT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^POINT_EVENT(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/POINT_EVENT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^INTERVAL_EVENT(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/INTERVAL_EVENT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EXTRACT_FOLDER(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT_FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^GENERIC_CONTENT_ITEM(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_CONTENT_ITEM"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OPENEHR_CONTENT_ITEM(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OPENEHR_CONTENT_ITEM"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^FOLDER(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EXTRACT(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EXTRACT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ADDRESS(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ADDRESS"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_RELATIONSHIP(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATIONSHIP"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EHR_ACCESS(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EHR_ACCESS"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^SYNC_EXTRACT(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/SYNC_EXTRACT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^SYNC_EXTRACT_REQUEST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/SYNC_EXTRACT_REQUEST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^COMPOSITION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/COMPOSITION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EHR_STATUS(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EHR_STATUS"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ACTIVITY(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ACTIVITY"
}
}
]
},
"item_type": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"item_type_version": {
"type": "string"
},
"author": {
"type": "string"
},
"creation_time": {
"type": "string",
"format": "date-time"
},
"authoriser": {
"type": "string"
},
"authorisation_time": {
"type": "string",
"format": "date-time"
},
"item_status": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"version_id": {
"type": "string"
},
"version_set_id": {
"type": "string"
},
"system_id": {
"type": "string"
},
"other_details": {
"type": "array",
"items": {
"type": "string"
}
},
"_type": {
"type": "string",
"pattern": "^GENERIC_CONTENT_ITEM(<.*>)?$"
}
},
"additionalProperties": false
},
"DATE": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DATE(<.*>)?$"
}
},
"additionalProperties": false
},
"ITEM_TABLE": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"rows": {
"type": "array",
"items": {
"$ref": "#/definitions/CLUSTER"
}
},
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
},
"additionalProperties": false
},
"INTERVAL_EVENT": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"time",
"data",
"width",
"math_function"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"time": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"state": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"data": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"width": {
"$ref": "#/definitions/DV_DURATION"
},
"sample_count": {
"type": "integer"
},
"math_function": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"_type": {
"type": "string",
"pattern": "^INTERVAL_EVENT(<.*>)?$"
}
},
"additionalProperties": false
},
"ATTESTATION": {
"type": "object",
"required": [
"system_id",
"time_committed",
"change_type",
"committer",
"reason",
"is_pending"
],
"properties": {
"system_id": {
"type": "string"
},
"time_committed": {
"$ref": "#/definitions/DV_DATE_TIME"
},
"change_type": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"description": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"committer": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_SELF(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_IDENTIFIED(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_RELATED(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"attested_view": {
"$ref": "#/definitions/DV_MULTIMEDIA"
},
"proof": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_EHR_URI"
}
},
"reason": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"is_pending": {
"type": "boolean"
},
"_type": {
"type": "string",
"pattern": "^ATTESTATION(<.*>)?$"
}
},
"additionalProperties": false
},
"ADDRESS": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"details"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^ADDRESS(<.*>)?$"
}
},
"additionalProperties": false
},
"REVISION_HISTORY": {
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/REVISION_HISTORY_ITEM"
}
},
"_type": {
"type": "string",
"pattern": "^REVISION_HISTORY(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_IDENTIFIER": {
"type": "object",
"required": [
"id"
],
"properties": {
"issuer": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"assigner": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DV_IDENTIFIER(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_CODED_TEXT": {
"type": "object",
"required": [
"value",
"defining_code"
],
"properties": {
"value": {
"type": "string"
},
"hyperlink": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_EHR_URI",
"DV_URI"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_EHR_URI(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_EHR_URI"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_URI(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_URI"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_URI"
}
}
]
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"formatting": {
"type": "string"
},
"mappings": {
"type": "array",
"items": {
"$ref": "#/definitions/TERM_MAPPING"
},
"minItems": 1
},
"defining_code": {
"$ref": "#/definitions/CODE_PHRASE"
},
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"additionalProperties": false
},
"DATE_TIME": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^DATE_TIME(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_RELATIONSHIP": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"source",
"target"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"source": {
"$ref": "#/definitions/PARTY_REF"
},
"target": {
"$ref": "#/definitions/PARTY_REF"
},
"details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"time_validity": {
"$ref": "#/definitions/DV_INTERVAL"
},
"_type": {
"type": "string",
"pattern": "^PARTY_RELATIONSHIP(<.*>)?$"
}
},
"additionalProperties": false
},
"LOCATABLE_REF": {
"type": "object",
"required": [
"id",
"namespace",
"type"
],
"properties": {
"id": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"namespace": {
"type": "string"
},
"type": {
"type": "string"
},
"path": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^LOCATABLE_REF(<.*>)?$"
}
},
"additionalProperties": false
},
"LIST": {
"type": "object",
"required": [
],
"properties": {
"_type": {
"type": "string",
"pattern": "^LIST(<.*>)?$"
}
}
},
"EHR_ACCESS": {
"type": "object",
"required": [
"archetype_node_id",
"name"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"settings": {
"type": "object"
},
"_type": {
"type": "string",
"pattern": "^EHR_ACCESS(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_EHR_URI": {
"type": "object",
"required": [
],
"properties": {
"value": {
"type": "string",
"format": "uri-reference"
},
"_type": {
"type": "string",
"pattern": "^DV_EHR_URI(<.*>)?$"
}
},
"additionalProperties": false
},
"TERMINOLOGY_TERM": {
"type": "object",
"required": [
"text",
"concept"
],
"properties": {
"text": {
"type": "string"
},
"concept": {
"$ref": "#/definitions/TERMINOLOGY_CODE"
},
"_type": {
"type": "string",
"pattern": "^TERMINOLOGY_TERM(<.*>)?$"
}
},
"additionalProperties": false
},
"DV_SCALE": {
"type": "object",
"required": [
"value",
"symbol"
],
"properties": {
"normal_status": {
"$ref": "#/definitions/CODE_PHRASE"
},
"normal_range": {
"$ref": "#/definitions/DV_INTERVAL"
},
"other_reference_ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/REFERENCE_RANGE"
},
"minItems": 1
},
"value": {
"type": "number"
},
"symbol": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"_type": {
"type": "string",
"pattern": "^DV_SCALE(<.*>)?$"
}
},
"additionalProperties": false
},
"ARCHETYPE_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^ARCHETYPE_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_REF": {
"type": "object",
"required": [
"id",
"namespace",
"type"
],
"properties": {
"id": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"TERMINOLOGY_ID",
"GENERIC_ID",
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID",
"ARCHETYPE_ID",
"TEMPLATE_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^TERMINOLOGY_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/TERMINOLOGY_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^GENERIC_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ARCHETYPE_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ARCHETYPE_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^TEMPLATE_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/TEMPLATE_ID"
}
}
]
},
"namespace": {
"type": "string"
},
"type": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^PARTY_REF(<.*>)?$"
}
},
"additionalProperties": false
},
"TEMPLATE_ID": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
},
"_type": {
"type": "string",
"pattern": "^TEMPLATE_ID(<.*>)?$"
}
},
"additionalProperties": false
},
"ADMIN_ENTRY": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"language",
"encoding",
"subject",
"data"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"encoding": {
"$ref": "#/definitions/CODE_PHRASE"
},
"subject": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_SELF(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_IDENTIFIED(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_RELATED(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"provider": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_SELF(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_IDENTIFIED(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_RELATED(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"other_participations": {
"type": "array",
"items": {
"$ref": "#/definitions/PARTICIPATION"
}
},
"workflow_id": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"LOCATABLE_REF",
"PARTY_REF",
"ACCESS_GROUP_REF",
"OBJECT_REF"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^LOCATABLE_REF(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/LOCATABLE_REF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_REF(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/PARTY_REF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ACCESS_GROUP_REF(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/ACCESS_GROUP_REF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_REF(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/OBJECT_REF"
}
}
]
},
"data": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^ADMIN_ENTRY(<.*>)?$"
}
},
"additionalProperties": false
},
"PARTY_IDENTIFIED": {
"type": "object",
"required": [
],
"properties": {
"external_ref": {
"$ref": "#/definitions/PARTY_REF"
},
"name": {
"type": "string"
},
"identifiers": {
"type": "array",
"items": {
"$ref": "#/definitions/DV_IDENTIFIER"
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^PARTY_IDENTIFIED(<.*>)?$"
}
},
"additionalProperties": false
},
"OPENEHR_CONTENT_ITEM": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"is_primary"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"is_primary": {
"type": "boolean"
},
"is_changed": {
"type": "boolean"
},
"is_masked": {
"type": "boolean"
},
"item": {
"allOf": [
{
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_PARTY(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_PARTY"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_COMPOSITION(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_COMPOSITION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_FOLDER(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_FOLDER"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_EHR_ACCESS(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_EHR_ACCESS"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_EHR_STATUS(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_EHR_STATUS"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^X_VERSIONED_OBJECT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/X_VERSIONED_OBJECT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/X_VERSIONED_OBJECT"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^OPENEHR_CONTENT_ITEM(<.*>)?$"
}
},
"additionalProperties": false
},
"COMPOSITION": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"language",
"territory",
"category",
"composer"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"language": {
"$ref": "#/definitions/CODE_PHRASE"
},
"territory": {
"$ref": "#/definitions/CODE_PHRASE"
},
"category": {
"$ref": "#/definitions/DV_CODED_TEXT"
},
"composer": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"PARTY_SELF",
"PARTY_IDENTIFIED",
"PARTY_RELATED"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_SELF(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_SELF"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_IDENTIFIED(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_IDENTIFIED"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^PARTY_RELATED(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/PARTY_RELATED"
}
}
]
},
"context": {
"$ref": "#/definitions/EVENT_CONTEXT"
},
"content": {
"type": "array",
"items": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"INSTRUCTION",
"EVALUATION",
"OBSERVATION",
"ACTION",
"ADMIN_ENTRY",
"GENERIC_ENTRY",
"SECTION"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^INSTRUCTION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/INSTRUCTION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^EVALUATION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/EVALUATION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBSERVATION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBSERVATION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ACTION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ACTION"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ADMIN_ENTRY(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ADMIN_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^GENERIC_ENTRY(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ENTRY"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^SECTION(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/SECTION"
}
}
]
},
"minItems": 1
},
"_type": {
"type": "string",
"pattern": "^COMPOSITION(<.*>)?$"
}
},
"additionalProperties": false
},
"EHR_STATUS": {
"type": "object",
"required": [
"archetype_node_id",
"name",
"subject",
"is_queryable",
"is_modifiable"
],
"properties": {
"uid": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^OBJECT_VERSION_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/OBJECT_VERSION_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^HIER_OBJECT_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/HIER_OBJECT_ID"
}
}
]
},
"archetype_node_id": {
"type": "string"
},
"name": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"archetype_details": {
"$ref": "#/definitions/ARCHETYPED"
},
"feeder_audit": {
"$ref": "#/definitions/FEEDER_AUDIT"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/LINK"
},
"minItems": 1
},
"subject": {
"$ref": "#/definitions/PARTY_SELF"
},
"is_queryable": {
"type": "boolean"
},
"is_modifiable": {
"type": "boolean"
},
"other_details": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"ITEM_SINGLE",
"ITEM_TREE",
"ITEM_LIST",
"ITEM_TABLE"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_SINGLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_SINGLE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TREE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TREE"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_LIST(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_LIST"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^ITEM_TABLE(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/ITEM_TABLE"
}
}
]
},
"_type": {
"type": "string",
"pattern": "^EHR_STATUS(<.*>)?$"
}
},
"additionalProperties": false
},
"LINK": {
"type": "object",
"required": [
"meaning",
"type",
"target"
],
"properties": {
"meaning": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"type": {
"allOf": [
{
"properties": {
"_type": {
"type": "string",
"enum": [
"DV_CODED_TEXT",
"DV_TEXT"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_CODED_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_CODED_TEXT"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^DV_TEXT(<.*>)?$"
}
},
"required": [
"_type"
]
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
},
{
"if": {
"not": {
"required": [
"_type"
]
}
},
"then": {
"$ref": "#/definitions/DV_TEXT"
}
}
]
},
"target": {
"$ref": "#/definitions/DV_EHR_URI"
},
"_type": {
"type": "string",
"pattern": "^LINK(<.*>)?$"
}
},
"additionalProperties": false
},
"TRANSLATION_DETAILS": {
"type": "object",
"required": [
"language",
"author"
],
"properties": {
"language": {
"$ref": "#/definitions/TERMINOLOGY_CODE"
},
"author": {
"type": "object"
},
"accreditation": {
"type": "string"
},
"other_details": {
"type": "object"
},
"_type": {
"type": "string",
"pattern": "^TRANSLATION_DETAILS(<.*>)?$"
}
},
"additionalProperties": false
},
"ACCESS_GROUP_REF": {
"type": "object",
"required": [
"id",
"namespace",
"type"
],
"properties": {
"id": {
"allOf": [
{
"required": [
"_type"
],
"properties": {
"_type": {
"type": "string",
"enum": [
"TERMINOLOGY_ID",
"GENERIC_ID",
"OBJECT_VERSION_ID",
"HIER_OBJECT_ID",
"ARCHETYPE_ID",
"TEMPLATE_ID"
]
}
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^TERMINOLOGY_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/TERMINOLOGY_ID"
}
},
{
"if": {
"properties": {
"_type": {
"type": "string",
"pattern": "^GENERIC_ID(<.*>)?$"
}
}
},
"then": {
"$ref": "#/definitions/GENERIC_ID"
}
},
{
"if": {
"properties": {
"_type": {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment