openEHR · Schema

Openehr Rm 1.1.0 All

openEHRHealthcareEHRElectronic Health RecordsHealth InformaticsStandardsSpecificationInteroperabilityInformation ModelArchetypesAQLADLClinical ModellingReference ModelNot-for-profit
View JSON Schema on GitHub

JSON Schema

openehr-rm-1.1.0-all.json Raw ↑
{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://specifications.openehr.org/releases/ITS-JSON/latest/components/openehr_rm_1.1.0_all.json",
    "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"
            }
        },
        {
            "if": {
                "properties": {
                    "_type": {
                        "const": "CONTRIBUTION"
                    }
                }
            },
            "then": {
                "$ref": "#/definitions/CONTRIBUTION"
            }
        },
        {
            "if": {
                "properties": {
                    "_type": {
                        "const": "EHR"
                    }
                }
            },
            "then": {
                "$ref": "#/definitions/EHR"
            }
        },
        {
            "if": {
                "properties": {
                    "_type": {
                        "const": "EHR_STATUS"
                    }
                }
            },
            "then": {
                "$ref": "#/definitions/EHR_STATUS"
            }
        },
        {
            "if": {
                "properties": {
                    "_type": {
                        "const": "ORIGINAL_VERSION"
                    }
                }
            },
            "then": {
                "$ref": "#/definitions/ORIGINAL_VERSION"
            }
        },
        {
            "if": {
                "properties": {
                    "_type": {
                        "const": "IMPORTED_VERSION"
                    }
                }
            },
            "then": {
                "$ref": "#/definitions/IMPORTED_VERSION"
            }
        }
    ],
    "definitions": {
        "VERSION_STATUS": {
            "type": "object",
            "required": [
            ],
            "properties": {
                "_type": {
                    "type": "string",
                    "const": "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",
                    "const": "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",
                    "const": "AUDIT_DETAILS"
                }
            },
            "additionalProperties": false
        },
        "TERMINOLOGY_ID": {
            "type": "object",
            "required": [
                "value"
            ],
            "properties": {
                "value": {
                    "type": "string"
                },
                "_type": {
                    "type": "string",
                    "const": "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":

# --- truncated at 32 KB (631 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/openehr/refs/heads/main/json-schema/openehr-rm-1.1.0-all.json

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openehr-rm-1.1.0-all"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.