openapi: 3.2.0 info: title: Definition ADL2 API version: latest x-status: STABLE x-spec: definition contact: name: Specifications Editorial Committee openEHR url: https://specifications.openehr.org/ email: info@openehr.org license: name: Creative Commons Attribution-NoDerivs 3.0 Unported url: https://creativecommons.org/licenses/by-nd/3.0/ description: '## Description ### Purpose This specification describes service endpoints, resources and operations as well as details of requests and responses that interact with the openEHR Definition API in a RESTful manner.' servers: - url: https://{baseUrl}/v1 description: An example openEHR server URL. variables: baseUrl: default: openEHRSys.example.com description: The (example) server base URL prefix providing openEHR services. This may contain server name, port and base path prefix. security: [] tags: - name: ADL2 x-displayName: ADL2 TEMPLATE description: 'Management of AOM2 templates. See also ADL2 Template specifications.' paths: /definition/template/adl2: post: operationId: definition_template_adl2_upload summary: Upload a template description: Upload a new ADL2 operational template. tags: - ADL2 parameters: - $ref: '#/components/parameters/at_version' - $ref: '#/components/parameters/Prefer' - $ref: '#/components/parameters/Accept_Template_adl2' - name: Content-Type in: header style: simple schema: type: string enum: - text/plain requestBody: description: '' content: text/plain: schema: oneOf: - $ref: '#/components/schemas/OperationalTemplateV2' - type: string example: "operational_template (adl_version=2.0.6; rm_release=1.0.2; generated)\n openEHR-EHR-COMPOSITION.t_clinical_info_ds_sf.v1.0.0\n\nspecialize\n openEHR-EHR-COMPOSITION.discharge.v1\n\nlanguage\n original_language = <[ISO_639-1::en]>\n\ndescription\n lifecycle_state = <\"unmanaged\">\n original_author = <\n [\"name\"] = <\"Ian McNicoll\">\n [\"organisation\"] = <\"openEHR Foundation\">\n [\"email\"] = <\"ian.mcnicoll@openehr.org\">\n..." required: true responses: '201': $ref: '#/components/responses/201_Template_adl2_upload' '400': $ref: '#/components/responses/400' '409': $ref: '#/components/responses/409_template_already_exists' get: operationId: definition_template_adl2_list summary: List templates description: List the available ADL2 operational templates on the system. tags: - ADL2 parameters: - $ref: '#/components/parameters/Accept_JSON' - $ref: '#/components/parameters/filter_template_id' - $ref: '#/components/parameters/concept' - $ref: '#/components/parameters/filter_version' - $ref: '#/components/parameters/offset' - $ref: '#/components/parameters/fetch' responses: '200': $ref: '#/components/responses/200_TemplateList_adl2' /definition/template/adl2/{template_id}: get: operationId: definition_template_adl2_get summary: Get a template description: Retrieves the latest version of the ADL2 operational template identified by `template_id` identifier. tags: - ADL2 parameters: - $ref: '#/components/parameters/template_id_adl2' - $ref: '#/components/parameters/Accept_Template_adl2' responses: '200': $ref: '#/components/responses/200_Template_adl2_retrieved' '400': $ref: '#/components/responses/400' '404': $ref: '#/components/responses/404_unknown_template_id' /definition/template/adl2/{template_id}/example: get: operationId: definition_template_adl2_example_get summary: Get example data by template description: 'Generates and retrieves an example data instance based on an ADL2 operational template (OPT) identified by the `template_id` parameter. The generated example can be either an `input` type (ready for submission to the repository) or an `output` type (as it would appear when retrieved from the repository), controlled by the `type` parameter. The level of detail in the generated example can be customized using the `detail_level` parameter, which affects: - Number and complexity of nested elements - Inclusion/exclusion of optional elements - Depth of data point details The format of the returned data instance can be controlled via the `Accept` header. See the data representation specification for supported formats.' tags: - ADL2 parameters: - $ref: '#/components/parameters/template_id_adl2' - $ref: '#/components/parameters/example_type' - $ref: '#/components/parameters/example_detail_level' - $ref: '#/components/parameters/Accept_LOCATABLE' responses: '200': $ref: '#/components/responses/200_Template_example_retrieved' '400': $ref: '#/components/responses/400' '404': $ref: '#/components/responses/404_unknown_template_id' '406': $ref: '#/components/responses/406' /definition/template/adl2/{template_id}/{version}: get: operationId: definition_template_adl2_version_get summary: Get a template at version deprecated: true description: Retrieves the ADL2 operational template identified by `template_id` identifier, at specified `version`. tags: - ADL2 parameters: - $ref: '#/components/parameters/template_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/Accept_Template_adl2' responses: '200': $ref: '#/components/responses/200_Template_adl2_retrieved' '400': $ref: '#/components/responses/400' '404': $ref: '#/components/responses/404_unknown_template_id_or_version' components: schemas: DvDateTime: title: DV_DATE_TIME required: - value type: object properties: _type: enum: - DV_DATE_TIME type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' magnitude_status: type: string default: '=' accuracy: $ref: '#/components/schemas/DvDuration' value: type: string format: date-time example: _type: DV_DATE_TIME value: '2017-08-15T10:37:15.422+02:00' UObjectRefOfUidBasedId: title: OBJECT_REF type: object properties: namespace: type: string type: type: string id: $ref: '#/components/schemas/UUidBasedId' example: id: _type: HIER_OBJECT_ID value: 6cb19121-4307-4648-9da0-d62e4d51f19b namespace: local type: COMPOSITION required: - namespace - type - id UMDvEhrUri: title: DV_EHR_URI required: - value - _type type: object properties: _type: enum: - DV_EHR_URI type: string value: type: string example: _type: DV_EHR_URI value: ehr://system_id/ehr_id/top_level_structure_locator/path_inside_top_level_structure TerminologyId: title: TERMINOLOGY_ID type: object properties: _type: enum: - TERMINOLOGY_ID type: string value: type: string required: - value Capability: title: CAPABILITY required: - name - archetype_node_id - credentials type: object properties: _type: enum: - CAPABILITY type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' credentials: $ref: '#/components/schemas/UItemStructure' time_validity: $ref: '#/components/schemas/DvIntervalOfDate' ObjectRef: title: OBJECT_REF required: - namespace - type - id type: object properties: namespace: type: string type: type: string id: $ref: '#/components/schemas/UObjectId' example: id: _type: OBJECT_VERSION_ID value: fb458d9c-1323-42bc-b7f8-787f3660a0b5::openEHRSys.example.com::1 namespace: local type: COMPOSITION FeederAudit: title: FEEDER_AUDIT required: - originating_system_audit type: object properties: originating_system_item_ids: type: array items: $ref: '#/components/schemas/DvIdentifier' feeder_system_item_ids: type: array items: $ref: '#/components/schemas/DvIdentifier' original_content: $ref: '#/components/schemas/UDvEncapsulated' originating_system_audit: $ref: '#/components/schemas/FeederAuditDetails' feeder_system_audit: $ref: '#/components/schemas/FeederAuditDetails' UMPartyIdentified: title: PARTY_IDENTIFIED required: - _type type: object properties: _type: enum: - PARTY_IDENTIFIED type: string external_ref: $ref: '#/components/schemas/PartyRef' name: type: string identifiers: type: array items: $ref: '#/components/schemas/DvIdentifier' example: _type: PARTY_IDENTIFIED external_ref: id: _type: GENERIC_ID value: 16b74749-e6aa-4945-b760-b42bdc07098a scheme: pid namespace: openEHRSys.example.com type: PERSON name: A name UMPartyRelated: title: PARTY_RELATED required: - _type - relationship type: object properties: _type: enum: - PARTY_RELATED type: string external_ref: $ref: '#/components/schemas/PartyRef' name: type: string identifiers: type: array items: $ref: '#/components/schemas/DvIdentifier' relationship: $ref: '#/components/schemas/DvCodedText' example: _type: PARTY_IDENTIFIED external_ref: id: _type: GENERIC_ID value: 16b74749-e6aa-4945-b760-b42bdc07098a scheme: pid namespace: openEHRSys.example.com type: PERSON name: A name DvInterval: title: DV_INTERVAL required: - lower_unbounded - upper_unbounded - lower_included - upper_included type: object properties: _type: type: string default: DV_INTERVAL lower_unbounded: type: boolean upper_unbounded: type: boolean lower_included: type: boolean upper_included: type: boolean UMDvDuration: title: DV_DURATION required: - value - _type type: object properties: _type: enum: - DV_DURATION type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' magnitude_status: type: string default: '=' accuracy_is_percent: type: boolean accuracy: type: number value: type: string UMDvState: title: DV_STATE required: - value - is_terminal - _type type: object properties: _type: enum: - DV_STATE type: string value: $ref: '#/components/schemas/DvCodedText' is_terminal: type: boolean Group: title: GROUP type: object properties: _type: enum: - GROUP type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' identities: $ref: '#/components/schemas/ListOfPartyIdentity' contacts: $ref: '#/components/schemas/ListOfContact' details: $ref: '#/components/schemas/UItemStructure' relationships: $ref: '#/components/schemas/ListOfPartyRelationship' languages: type: array items: $ref: '#/components/schemas/UDvText' roles: type: array items: $ref: '#/components/schemas/PartyRef' required: - name - archetype_node_id - identities TemplateMetadata: title: TemplateMetadata required: - template_id - concept - archetype_id - created_timestamp type: object properties: template_id: type: string version: type: string deprecated: true concept: type: string archetype_id: type: string created_timestamp: type: string description: Uploaded TEMPLATE meta information. Clstr: title: CLUSTER required: - name - archetype_node_id - items type: object properties: _type: enum: - CLUSTER type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' items: type: array items: $ref: '#/components/schemas/UItem' Role: title: ROLE required: - name - archetype_node_id - identities - performer type: object properties: _type: enum: - ROLE type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' identities: $ref: '#/components/schemas/ListOfPartyIdentity' contacts: $ref: '#/components/schemas/ListOfContact' details: $ref: '#/components/schemas/UItemStructure' relationships: $ref: '#/components/schemas/ListOfPartyRelationship' time_validity: $ref: '#/components/schemas/DvIntervalOfDate' performer: $ref: '#/components/schemas/PartyRef' capabilities: $ref: '#/components/schemas/ListOfCapability' UMDvText: title: DV_TEXT required: - value - _type type: object properties: _type: enum: - DV_TEXT type: string value: type: string hyperlink: $ref: '#/components/schemas/UDvUri' formatting: type: string mappings: type: array items: $ref: '#/components/schemas/TermMapping' language: $ref: '#/components/schemas/CodePhrase' encoding: $ref: '#/components/schemas/CodePhrase' example: _type: DV_TEXT value: Text value UMAdminEntry: title: ADMIN_ENTRY required: - name - archetype_node_id - language - encoding - subject - data - _type type: object properties: _type: enum: - ADMIN_ENTRY type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' language: $ref: '#/components/schemas/CodePhrase' encoding: $ref: '#/components/schemas/CodePhrase' other_participations: type: array items: $ref: '#/components/schemas/Participation' workflow_id: $ref: '#/components/schemas/ObjectRef' subject: $ref: '#/components/schemas/UPartyProxy' provider: $ref: '#/components/schemas/UPartyProxy' data: $ref: '#/components/schemas/UItemStructure' Activity: title: ACTIVITY required: - name - archetype_node_id - action_archetype_id - description type: object properties: _type: enum: - ACTIVITY type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' timing: $ref: '#/components/schemas/DvParsable' action_archetype_id: type: string description: $ref: '#/components/schemas/UItemStructure' ReferenceRange: title: REFERENCE_RANGE required: - meaning - range type: object properties: meaning: $ref: '#/components/schemas/UDvText' range: $ref: '#/components/schemas/DvInterval' ListOfPartyIdentity: title: ListOfPartyIdentity type: array items: $ref: '#/components/schemas/PartyIdentity' UMTerminologyId: title: TERMINOLOGY_ID required: - value - _type type: object properties: _type: enum: - TERMINOLOGY_ID type: string value: type: string UDvText: title: DV_TEXT type: object oneOf: - $ref: '#/components/schemas/UMDvText' - $ref: '#/components/schemas/UMDvCodedText' discriminator: propertyName: _type mapping: DV_TEXT: '#/components/schemas/UMDvText' DV_CODED_TEXT: '#/components/schemas/UMDvCodedText' PartyRef: title: PARTY_REF type: object properties: namespace: type: string type: pattern: ^PERSON|ORGANISATION|GROUP|AGENT|ROLE|PARTY|ACTOR$ type: string id: $ref: '#/components/schemas/UMHierObjectId' description: Identifier for parties in a demographic or identity service. example: id: _type: HIER_OBJECT_ID value: b52b9408-7048-4ec8-94bd-831fb0727e67 namespace: local type: PERSON required: - namespace - type - id EhrStatus: title: EHR_STATUS required: - name - archetype_node_id - subject - is_queryable - is_modifiable type: object properties: _type: enum: - EHR_STATUS type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' subject: $ref: '#/components/schemas/UPartyProxy' is_queryable: type: boolean default: true is_modifiable: type: boolean default: true other_details: $ref: '#/components/schemas/UItemStructure' description: An EHR_STATUS resource example: archetype_node_id: openEHR-EHR-EHR_STATUS.generic.v1 name: value: EHR status uid: _type: OBJECT_VERSION_ID value: 8849182c-82ad-4088-a07f-48ead4180515::openEHRSys.example.com::1 subject: _type: PARTY_SELF is_queryable: true is_modifiable: true ListOfPartyRelationship: title: ListOfPartyRelationShip type: array items: $ref: '#/components/schemas/PartyRelationship' UItemStructure: title: ITEM_STRUCTURE type: object oneOf: - $ref: '#/components/schemas/ItemSingle' - $ref: '#/components/schemas/ItemList' - $ref: '#/components/schemas/ItemTable' - $ref: '#/components/schemas/ItemTree' discriminator: propertyName: _type mapping: ITEM_SINGLE: '#/components/schemas/ItemSingle' ITEM_LIST: '#/components/schemas/ItemList' ITEM_TABLE: '#/components/schemas/ItemTable' ITEM_TREE: '#/components/schemas/ItemTree' Organisation: title: ORGANISATION type: object properties: _type: enum: - ORGANISATION type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' identities: $ref: '#/components/schemas/ListOfPartyIdentity' contacts: $ref: '#/components/schemas/ListOfContact' details: $ref: '#/components/schemas/UItemStructure' relationships: $ref: '#/components/schemas/ListOfPartyRelationship' languages: type: array items: $ref: '#/components/schemas/UDvText' roles: type: array items: $ref: '#/components/schemas/PartyRef' required: - name - archetype_node_id - identities DvEhrUri: title: DV_EHR_URI type: object properties: _type: enum: - DV_EHR_URI type: string value: type: string example: _type: DV_EHR_URI value: ehr://system_id/ehr_id/top_level_structure_locator/path_inside_top_level_structure required: - value UMDvParsable: title: DV_PARSABLE required: - _type - value - formalism type: object properties: _type: enum: - DV_PARSABLE type: string charset: $ref: '#/components/schemas/CodePhrase' language: $ref: '#/components/schemas/CodePhrase' value: type: string formalism: type: string UMDvUri: title: DV_URI required: - value - _type type: object properties: _type: enum: - DV_URI type: string value: type: string example: _type: DV_URI value: https://www.example.com DvIdentifier: title: DV_IDENTIFIER required: - id type: object properties: _type: enum: - DV_IDENTIFIER type: string issuer: type: string assigner: type: string id: type: string type: type: string description: 'Type for representing identifiers of real-world entities. Typical identifiers include drivers licence number, social security number, veterans affairs number, prescription id, order id, and so on. DV_IDENTIFIER is used to represent any identifier of a real thing, issued by some authority or agency. ' example: id: 16b74749-e6aa-4945-b760-b42bdc07098a type: Patient Agent: title: AGENT type: object properties: _type: enum: - AGENT type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' identities: $ref: '#/components/schemas/ListOfPartyIdentity' contacts: $ref: '#/components/schemas/ListOfContact' details: $ref: '#/components/schemas/UItemStructure' relationships: $ref: '#/components/schemas/ListOfPartyRelationship' languages: type: array items: $ref: '#/components/schemas/UDvText' roles: type: array items: $ref: '#/components/schemas/PartyRef' required: - name - archetype_node_id - identities UMInstruction: title: INSTRUCTION required: - name - archetype_node_id - language - encoding - subject - narrative - _type type: object properties: _type: enum: - INSTRUCTION type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' language: $ref: '#/components/schemas/CodePhrase' encoding: $ref: '#/components/schemas/CodePhrase' other_participations: type: array items: $ref: '#/components/schemas/Participation' workflow_id: $ref: '#/components/schemas/ObjectRef' subject: $ref: '#/components/schemas/UPartyProxy' provider: $ref: '#/components/schemas/UPartyProxy' protocol: $ref: '#/components/schemas/UItemStructure' guideline_id: $ref: '#/components/schemas/ObjectRef' narrative: $ref: '#/components/schemas/UDvText' expiry_time: $ref: '#/components/schemas/DvDateTime' wf_definition: $ref: '#/components/schemas/DvParsable' activities: type: array items: $ref: '#/components/schemas/Activity' PartyRelationship: title: PARTY_RELATIONSHIP required: - name - archetype_node_id - source - target type: object properties: _type: type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' source: $ref: '#/components/schemas/PartyRef' target: $ref: '#/components/schemas/PartyRef' details: $ref: '#/components/schemas/UItemStructure' time_validity: $ref: '#/components/schemas/DvIntervalOfDate' UItem: title: ITEM type: object oneOf: - $ref: '#/components/schemas/Element' - $ref: '#/components/schemas/Clstr' discriminator: propertyName: _type mapping: ELEMENT: '#/components/schemas/Element' CLUSTER: '#/components/schemas/Clstr' ItemTable: title: ITEM_TABLE type: object properties: _type: enum: - ITEM_TABLE type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' items: type: array items: $ref: '#/components/schemas/Clstr' required: - name - archetype_node_id UMArchetypeId: title: ARCHETYPE_ID required: - value - _type type: object properties: _type: enum: - ARCHETYPE_ID type: string value: type: string ListOfContact: title: ListOfContact type: array items: $ref: '#/components/schemas/Contact' TemplateId: title: TEMPLATE_ID type: object properties: _type: enum: - TEMPLATE_ID type: string value: type: string required: - value UUidBasedId: title: UID_BASED_ID type: object oneOf: - $ref: '#/components/schemas/UMHierObjectId' - $ref: '#/components/schemas/UMObjectVersionId' discriminator: propertyName: _type mapping: HIER_OBJECT_ID: '#/components/schemas/UMHierObjectId' OBJECT_VERSION_ID: '#/components/schemas/UMObjectVersionId' UMTemplateId: title: TEMPLATE_ID required: - value - _type type: object properties: _type: enum: - TEMPLATE_ID type: string value: type: string UDvUri: title: DV_URI type: object oneOf: - $ref: '#/components/schemas/UMDvUri' - $ref: '#/components/schemas/UMDvEhrUri' discriminator: propertyName: _type mapping: DV_URI: '#/components/schemas/UMDvUri' DV_EHR_URI: '#/components/schemas/UMDvEhrUri' Element: title: ELEMENT type: object properties: _type: enum: - ELEMENT type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' null_flavour: $ref: '#/components/schemas/DvCodedText' value: $ref: '#/components/schemas/UDataValue' null_reason: $ref: '#/components/schemas/UDvText' required: - name - archetype_node_id IsmTransition: title: ISM_TRANSITION required: - current_state type: object properties: _type: enum: - ISM_TRANSITION type: string current_state: $ref: '#/components/schemas/DvCodedText' transition: $ref: '#/components/schemas/DvCodedText' careflow_step: $ref: '#/components/schemas/DvCodedText' reason: type: array items: $ref: '#/components/schemas/UDvText' Archetyped: title: ARCHETYPED required: - archetype_id - rm_version type: object properties: archetype_id: $ref: '#/components/schemas/ArchetypeId' template_id: $ref: '#/components/schemas/TemplateId' rm_version: type: string example: archetype_id: value: openEHR-EHR-COMPOSITION.encounter.v1 template_id: value: Example.v1::c7ec861c-c413-39ff-9965-a198ebf44747 rm_version: 1.0.2 additionalProperties: false DvParsable: title: DV_PARSABLE required: - _type - value - formalism type: object properties: _type: enum: - DV_PARSABLE type: string charset: $ref: '#/components/schemas/CodePhrase' language: $ref: '#/components/schemas/CodePhrase' value: type: string formalism: type: string Folder: title: FOLDER type: object properties: _type: enum: - FOLDER type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' items: type: array items: $ref: '#/components/schemas/UObjectRefOfUidBasedId' folders: type: array items: $ref: '#/components/schemas/Folder' details: $ref: '#/components/schemas/UItemStructure' description: A FOLDER resource example: archetype_node_id: openEHR-EHR-FOLDER.directory.v1 name: value: Directory uid: _type: OBJECT_VERSION_ID value: 8849182c-82ad-4088-a07f-48ead4180515::openEHRSys.example.com::1 items: [] folders: [] required: - name - archetype_node_id ArchetypeId: title: ARCHETYPE_ID type: object properties: _type: enum: - ARCHETYPE_ID type: string value: type: string required: - value PartyIdentity: title: PARTY_IDENTITY required: - name - archetype_node_id - details type: object properties: _type: type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' details: $ref: '#/components/schemas/UItemStructure' DvCodedText: title: DV_CODED_TEXT required: - value - defining_code type: object properties: _type: enum: - DV_CODED_TEXT type: string value: type: string hyperlink: $ref: '#/components/schemas/UDvUri' formatting: type: string mappings: type: array items: $ref: '#/components/schemas/TermMapping' language: $ref: '#/components/schemas/CodePhrase' encoding: $ref: '#/components/schemas/CodePhrase' defining_code: $ref: '#/components/schemas/CodePhrase' example: value: Coded text value defining_code: terminology_id: value: local code_string: at0001 DvDuration: title: DV_DURATION required: - value type: object properties: _type: enum: - DV_DURATION type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' magnitude_status: type: string default: '=' accuracy_is_percent: type: boolean accuracy: type: number value: type: string ItemTree: title: ITEM_TREE type: object properties: _type: enum: - ITEM_TREE type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' items: type: array items: $ref: '#/components/schemas/UItem' description: See [ITEM](#tag/ITEM_schema) schema details. required: - name - archetype_node_id ItemSingle: title: ITEM_SINGLE required: - name - archetype_node_id - item type: object properties: _type: enum: - ITEM_SINGLE type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' item: $ref: '#/components/schemas/Element' DvIntervalOfDate: title: DV_INTERVAL_of_DATE type: object properties: _type: type: string default: DV_INTERVAL lower_unbounded: type: boolean upper_unbounded: type: boolean lower_included: type: boolean upper_included: type: boolean lower: $ref: '#/components/schemas/UMDvDate' upper: $ref: '#/components/schemas/UMDvDate' required: - lower_unbounded - upper_unbounded - lower_included - upper_included Error: title: Error required: - message - validationErrors type: object properties: message: type: string validationErrors: type: array items: type: string description: '' example: message: Error message validationErrors: - error1 - error2 UMPartySelf: title: PARTY_SELF required: - _type type: object properties: _type: enum: - PARTY_SELF type: string external_ref: $ref: '#/components/schemas/PartyRef' Participation: title: PARTICIPATION required: - function - performer type: object properties: function: $ref: '#/components/schemas/UDvText' mode: $ref: '#/components/schemas/DvCodedText' performer: $ref: '#/components/schemas/UPartyProxy' time: $ref: '#/components/schemas/DvIntervalOfDateTime' TermMapping: title: TERM_MAPPING required: - match - target type: object properties: match: pattern: ^[><=?]$ type: string purpose: $ref: '#/components/schemas/DvCodedText' target: $ref: '#/components/schemas/CodePhrase' UPartyIdentified: title: PARTY_IDENTIFIED type: object oneOf: - $ref: '#/components/schemas/UMPartyIdentified' - $ref: '#/components/schemas/UMPartyRelated' discriminator: propertyName: _type mapping: PARTY_IDENTIFIED: '#/components/schemas/UMPartyIdentified' PARTY_RELATED: '#/components/schemas/UMPartyRelated' CodePhrase: title: CODE_PHRASE required: - terminology_id - code_string type: object properties: terminology_id: $ref: '#/components/schemas/TerminologyId' code_string: type: string preferred_term: type: string example: terminology_id: value: local code_string: at0001 Link: title: LINK required: - meaning - type - target type: object properties: meaning: $ref: '#/components/schemas/UDvText' type: $ref: '#/components/schemas/UDvText' target: $ref: '#/components/schemas/DvEhrUri' UMHierObjectId: title: HIER_OBJECT_ID required: - value - _type type: object example: _type: HIER_OBJECT_ID value: 6cb19121-4307-4648-9da0-d62e4d51f19b properties: _type: enum: - HIER_OBJECT_ID type: string value: type: string format: uuid UMObjectVersionId: title: OBJECT_VERSION_ID required: - value - _type type: object example: _type: OBJECT_VERSION_ID value: 6cb19121-4307-4648-9da0-d62e4d51f19b::openEHRSys.example.com::2 properties: _type: enum: - OBJECT_VERSION_ID type: string value: type: string UMDvScale: title: DV_SCALE required: - symbol - value - _type type: object properties: _type: enum: - DV_SCALE type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' symbol: $ref: '#/components/schemas/DvCodedText' value: type: number Event: title: EVENT required: - name - archetype_node_id - time - data type: object properties: _type: type: string default: EVENT name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' time: $ref: '#/components/schemas/DvDateTime' state: $ref: '#/components/schemas/UItemStructure' data: $ref: '#/components/schemas/UItemStructure' FeederAuditDetails: title: FEEDER_AUDIT_DETAILS required: - system_id type: object properties: system_id: type: string location: $ref: '#/components/schemas/UPartyIdentified' subject: $ref: '#/components/schemas/UPartyProxy' provider: $ref: '#/components/schemas/UPartyIdentified' time: $ref: '#/components/schemas/DvDateTime' version_id: type: string other_details: $ref: '#/components/schemas/UItemStructure' UMDvOrdinal: title: DV_ORDINAL required: - symbol - value - _type type: object properties: _type: enum: - DV_ORDINAL type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' symbol: $ref: '#/components/schemas/DvCodedText' value: type: integer LocatableRef: title: LOCATABLE_REF required: - namespace - type - id type: object properties: namespace: type: string type: type: string id: $ref: '#/components/schemas/UUidBasedId' path: type: string History: title: HISTORY required: - name - archetype_node_id - origin type: object properties: _type: type: string default: HISTORY name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' origin: $ref: '#/components/schemas/DvDateTime' period: $ref: '#/components/schemas/DvDuration' duration: $ref: '#/components/schemas/DvDuration' summary: $ref: '#/components/schemas/UItemStructure' events: type: array items: $ref: '#/components/schemas/Event' Address: title: ADDRESS required: - name - archetype_node_id - details type: object properties: _type: type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' details: $ref: '#/components/schemas/UItemStructure' Composition: title: COMPOSITION required: - name - archetype_node_id - language - territory - category - composer type: object properties: _type: enum: - COMPOSITION type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' language: $ref: '#/components/schemas/CodePhrase' territory: $ref: '#/components/schemas/CodePhrase' category: $ref: '#/components/schemas/DvCodedText' context: $ref: '#/components/schemas/EventContext' composer: $ref: '#/components/schemas/UPartyProxy' content: minItems: 1 type: array items: $ref: '#/components/schemas/UContentItem' description: See [CONTENT_ITEM](#tag/CONTENT_ITEM_schema) schema details. description: A COMPOSITION resource example: archetype_node_id: openEHR-EHR-COMPOSITION.encounter.v1 name: value: Vital Signs uid: _type: OBJECT_VERSION_ID value: 8849182c-82ad-4088-a07f-48ead4180515::openEHRSys.example.com::1 archetype_details: archetype_id: value: openEHR-EHR-COMPOSITION.encounter.v1 template_id: value: Example.v1::c7ec861c-c413-39ff-9965-a198ebf44747 rm_version: 1.0.2 language: terminology_id: value: ISO_639-1 code_string: en territory: terminology_id: value: ISO_3166-1 code_string: NL category: value: event defining_code: terminology_id: value: openehr code_string: '433' composer: _type: PARTY_IDENTIFIED external_ref: id: _type: GENERIC_ID value: 16b74749-e6aa-4945-b760-b42bdc07098a scheme: pid namespace: openEHRSys.example.com type: PERSON name: A name context: start_time: value: '2014-11-18T09:50:35.000+01:00' setting: value: other care defining_code: terminology_id: value: openehr code_string: '238' content: [] Person: title: PERSON type: object properties: _type: enum: - PERSON type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' identities: $ref: '#/components/schemas/ListOfPartyIdentity' contacts: $ref: '#/components/schemas/ListOfContact' details: $ref: '#/components/schemas/UItemStructure' relationships: $ref: '#/components/schemas/ListOfPartyRelationship' languages: type: array items: $ref: '#/components/schemas/UDvText' roles: type: array items: $ref: '#/components/schemas/PartyRef' required: - name - archetype_node_id - identities UMDvQuantity: title: DV_QUANTITY required: - magnitude - units - _type type: object properties: _type: enum: - DV_QUANTITY type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' magnitude_status: type: string default: '=' accuracy_is_percent: type: boolean accuracy: type: number magnitude: type: number precision: type: integer units: type: string units_system: type: string units_display_name: type: string OperationalTemplateV2: title: OPERATIONAL_TEMPLATE_V2 type: object DvIntervalOfDateTime: title: DV_INTERVAL_of_DATE_TIME type: object properties: _type: type: string default: DV_INTERVAL lower_unbounded: type: boolean upper_unbounded: type: boolean lower_included: type: boolean upper_included: type: boolean lower: $ref: '#/components/schemas/UMDvDateTime' upper: $ref: '#/components/schemas/UMDvDateTime' required: - lower_unbounded - upper_unbounded - lower_included - upper_included TemplateList: title: TemplateList type: array items: $ref: '#/components/schemas/TemplateMetadata' description: 'List of uploaded TEMPLATE resources. ' ItemList: title: ITEM_LIST type: object properties: _type: enum: - ITEM_LIST type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' items: type: array items: $ref: '#/components/schemas/Element' required: - name - archetype_node_id UMDvProportion: title: DV_PROPORTION required: - numerator - denominator - type - _type type: object properties: _type: enum: - DV_PROPORTION type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' magnitude_status: type: string default: '=' accuracy_is_percent: type: boolean accuracy: type: number numerator: type: number denominator: type: number type: type: integer precision: type: integer UObjectId: title: OBJECT_ID type: object oneOf: - $ref: '#/components/schemas/UMArchetypeId' - $ref: '#/components/schemas/UMTemplateId' - $ref: '#/components/schemas/UMTerminologyId' - $ref: '#/components/schemas/UMGenericId' - $ref: '#/components/schemas/UMHierObjectId' - $ref: '#/components/schemas/UMObjectVersionId' discriminator: propertyName: _type mapping: ARCHETYPE_ID: '#/components/schemas/UMArchetypeId' TEMPLATE_ID: '#/components/schemas/UMTemplateId' TERMINOLOGY_ID: '#/components/schemas/UMTerminologyId' GENERIC_ID: '#/components/schemas/UMGenericId' HIER_OBJECT_ID: '#/components/schemas/UMHierObjectId' OBJECT_VERSION_ID: '#/components/schemas/UMObjectVersionId' UMObservation: title: OBSERVATION required: - name - archetype_node_id - language - encoding - subject - data - _type type: object properties: _type: enum: - OBSERVATION type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' language: $ref: '#/components/schemas/CodePhrase' encoding: $ref: '#/components/schemas/CodePhrase' other_participations: type: array items: $ref: '#/components/schemas/Participation' workflow_id: $ref: '#/components/schemas/ObjectRef' subject: $ref: '#/components/schemas/UPartyProxy' provider: $ref: '#/components/schemas/UPartyProxy' protocol: $ref: '#/components/schemas/UItemStructure' guideline_id: $ref: '#/components/schemas/ObjectRef' data: $ref: '#/components/schemas/History' state: $ref: '#/components/schemas/History' UMDvIdentifier: title: DV_IDENTIFIER required: - id - _type type: object properties: _type: enum: - DV_IDENTIFIER type: string issuer: type: string assigner: type: string id: type: string type: type: string example: id: 16b74749-e6aa-4945-b760-b42bdc07098a type: Patient EventContext: title: EVENT_CONTEXT required: - start_time - setting type: object properties: _type: type: string start_time: $ref: '#/components/schemas/DvDateTime' end_time: $ref: '#/components/schemas/DvDateTime' location: type: string setting: $ref: '#/components/schemas/DvCodedText' other_context: $ref: '#/components/schemas/UItemStructure' health_care_facility: $ref: '#/components/schemas/UPartyIdentified' participations: type: array items: $ref: '#/components/schemas/Participation' ListOfCapability: title: ListOfCapability type: array items: $ref: '#/components/schemas/Capability' TemplateIdentifier: title: Identifier required: - template_id type: object properties: template_id: type: string description: The fully qualified template identifier. example: template_id: org.highmed::openEHR-EHR-COMPOSITION.t_vital_signs.v1.0.0 UMDvBoolean: title: DV_BOOLEAN required: - value - _type type: object properties: _type: enum: - DV_BOOLEAN type: string value: type: boolean UMDvCount: title: DV_COUNT required: - magnitude - _type type: object properties: _type: enum: - DV_COUNT type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' magnitude_status: type: string default: '=' accuracy_is_percent: type: boolean accuracy: type: number magnitude: type: integer format: int64 UMGenericId: title: GENERIC_ID required: - value - scheme - _type type: object example: _type: GENERIC_ID value: c7ec861c-c413-39ff-9965-a198ebf44747 scheme: pid properties: _type: enum: - GENERIC_ID type: string value: type: string scheme: type: string UMDvDateTime: title: DV_DATE_TIME required: - value - _type type: object properties: _type: enum: - DV_DATE_TIME type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' magnitude_status: type: string default: '=' accuracy: $ref: '#/components/schemas/DvDuration' value: type: string format: date-time example: _type: DV_DATE_TIME value: '2017-08-15T10:37:15.422+02:00' InstructionDetails: title: INSTRUCTION_DETAILS required: - instruction_id - activity_id type: object properties: _type: enum: - INSTRUCTION_DETAILS type: string instruction_id: $ref: '#/components/schemas/LocatableRef' activity_id: type: string wf_details: $ref: '#/components/schemas/UItemStructure' UMEvaluation: title: EVALUATION required: - name - archetype_node_id - language - encoding - subject - data - _type type: object properties: _type: enum: - EVALUATION type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' language: $ref: '#/components/schemas/CodePhrase' encoding: $ref: '#/components/schemas/CodePhrase' other_participations: type: array items: $ref: '#/components/schemas/Participation' workflow_id: $ref: '#/components/schemas/ObjectRef' subject: $ref: '#/components/schemas/UPartyProxy' provider: $ref: '#/components/schemas/UPartyProxy' protocol: $ref: '#/components/schemas/UItemStructure' guideline_id: $ref: '#/components/schemas/ObjectRef' data: $ref: '#/components/schemas/UItemStructure' UDvEncapsulated: title: DV_ENCAPSULATED type: object oneOf: - $ref: '#/components/schemas/UMDvMultimedia' - $ref: '#/components/schemas/UMDvParsable' discriminator: propertyName: _type mapping: DV_MULTIMEDIA: '#/components/schemas/UMDvMultimedia' DV_PARSABLE: '#/components/schemas/UMDvParsable' UMDvDate: title: DV_DATE required: - value - _type type: object properties: _type: enum: - DV_DATE type: string normal_status: $ref: '#/components/schemas/CodePhrase' normal_range: $ref: '#/components/schemas/DvInterval' other_reference_ranges: type: array items: $ref: '#/components/schemas/ReferenceRange' magnitude_status: type: string default: '=' accuracy: $ref: '#/components/schemas/DvDuration' value: type: string format: date example: _type: DV_DATE value: '2017-08-15' UDataValue: title: DATA_VALUE type: object oneOf: - $ref: '#/components/schemas/UMDvBoolean' - $ref: '#/components/schemas/UMDvCodedText' - $ref: '#/components/schemas/UMDvCount' - $ref: '#/components/schemas/UMDvDate' - $ref: '#/components/schemas/UMDvDateTime' - $ref: '#/components/schemas/UMDvDuration' - $ref: '#/components/schemas/UMDvEhrUri' - $ref: '#/components/schemas/UMDvIdentifier' - $ref: '#/components/schemas/UMDvMultimedia' - $ref: '#/components/schemas/UMDvOrdinal' - $ref: '#/components/schemas/UMDvParsable' - $ref: '#/components/schemas/UMDvProportion' - $ref: '#/components/schemas/UMDvQuantity' - $ref: '#/components/schemas/UMDvScale' - $ref: '#/components/schemas/UMDvState' - $ref: '#/components/schemas/UMDvText' - $ref: '#/components/schemas/UMDvUri' discriminator: propertyName: _type mapping: DV_BOOLEAN: '#/components/schemas/UMDvBoolean' DV_CODED_TEXT: '#/components/schemas/UMDvCodedText' DV_COUNT: '#/components/schemas/UMDvCount' DV_DATE: '#/components/schemas/UMDvDate' DV_DATE_TIME: '#/components/schemas/UMDvDateTime' DV_DURATION: '#/components/schemas/UMDvDuration' DV_EHR_URI: '#/components/schemas/UMDvEhrUri' DV_IDENTIFIER: '#/components/schemas/UMDvIdentifier' DV_MULTIMEDIA: '#/components/schemas/UMDvMultimedia' DV_ORDINAL: '#/components/schemas/UMDvOrdinal' DV_PARSABLE: '#/components/schemas/UMDvParsable' DV_PROPORTION: '#/components/schemas/UMDvProportion' DV_QUANTITY: '#/components/schemas/UMDvQuantity' DV_SCALE: '#/components/schemas/UMDvScale' DV_STATE: '#/components/schemas/UMDvState' DV_TEXT: '#/components/schemas/UMDvText' DV_TIME: '#/components/schemas/UMDvTime' DV_URI: '#/components/schemas/UMDvUri' UContentItem: title: CONTENT_ITEM type: object oneOf: - $ref: '#/components/schemas/UMSection' - $ref: '#/components/schemas/UMAdminEntry' - $ref: '#/components/schemas/UMObservation' - $ref: '#/components/schemas/UMEvaluation' - $ref: '#/components/schemas/UMInstruction' - $ref: '#/components/schemas/UMAction' discriminator: propertyName: _type mapping: SECTION: '#/components/schemas/UMSection' ADMIN_ENTRY: '#/components/schemas/UMAdminEntry' OBSERVATION: '#/components/schemas/UMObservation' EVALUATION: '#/components/schemas/UMEvaluation' INSTRUCTION: '#/components/schemas/UMInstruction' ACTION: '#/components/schemas/UMAction' UMAction: title: ACTION required: - name - archetype_node_id - language - encoding - subject - time - ism_transition - description - _type type: object properties: _type: enum: - ACTION type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' language: $ref: '#/components/schemas/CodePhrase' encoding: $ref: '#/components/schemas/CodePhrase' other_participations: type: array items: $ref: '#/components/schemas/Participation' workflow_id: $ref: '#/components/schemas/ObjectRef' subject: $ref: '#/components/schemas/UPartyProxy' provider: $ref: '#/components/schemas/UPartyProxy' protocol: $ref: '#/components/schemas/UItemStructure' guideline_id: $ref: '#/components/schemas/ObjectRef' time: $ref: '#/components/schemas/DvDateTime' ism_transition: $ref: '#/components/schemas/IsmTransition' instruction_details: $ref: '#/components/schemas/InstructionDetails' description: $ref: '#/components/schemas/UItemStructure' UPartyProxy: title: PARTY_PROXY type: object oneOf: - $ref: '#/components/schemas/UMPartySelf' - $ref: '#/components/schemas/UMPartyIdentified' - $ref: '#/components/schemas/UMPartyRelated' discriminator: propertyName: _type mapping: PARTY_SELF: '#/components/schemas/UMPartySelf' PARTY_IDENTIFIED: '#/components/schemas/UMPartyIdentified' PARTY_RELATED: '#/components/schemas/UMPartyRelated' UMDvMultimedia: title: DV_MULTIMEDIA required: - _type - media_type - size type: object properties: _type: enum: - DV_MULTIMEDIA type: string charset: $ref: '#/components/schemas/CodePhrase' language: $ref: '#/components/schemas/CodePhrase' alternate_text: type: string uri: $ref: '#/components/schemas/UDvUri' data: type: string media_type: $ref: '#/components/schemas/CodePhrase' compression_algorithm: $ref: '#/components/schemas/CodePhrase' integrity_check: type: string integrity_check_algorithm: $ref: '#/components/schemas/CodePhrase' thumbnail: $ref: '#/components/schemas/DvMultimedia' size: type: integer DvMultimedia: title: DV_MULTIMEDIA required: - _type - media_type - size type: object properties: _type: enum: - DV_MULTIMEDIA type: string charset: $ref: '#/components/schemas/CodePhrase' language: $ref: '#/components/schemas/CodePhrase' alternate_text: type: string uri: $ref: '#/components/schemas/UDvUri' data: type: string media_type: $ref: '#/components/schemas/CodePhrase' compression_algorithm: $ref: '#/components/schemas/CodePhrase' integrity_check: type: string integrity_check_algorithm: $ref: '#/components/schemas/CodePhrase' thumbnail: $ref: '#/components/schemas/DvMultimedia' size: type: integer Contact: title: CONTACT required: - name - archetype_node_id - addresses type: object properties: _type: enum: - CONTACT type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' addresses: type: array items: $ref: '#/components/schemas/Address' time_validity: $ref: '#/components/schemas/DvIntervalOfDate' UMDvCodedText: title: DV_CODED_TEXT required: - value - defining_code - _type type: object properties: _type: enum: - DV_CODED_TEXT type: string value: type: string hyperlink: $ref: '#/components/schemas/UDvUri' formatting: type: string mappings: type: array items: $ref: '#/components/schemas/TermMapping' language: $ref: '#/components/schemas/CodePhrase' encoding: $ref: '#/components/schemas/CodePhrase' defining_code: $ref: '#/components/schemas/CodePhrase' example: value: Coded text value defining_code: terminology_id: value: local code_string: at0001 UMSection: title: SECTION required: - name - archetype_node_id - _type type: object properties: _type: enum: - SECTION type: string name: $ref: '#/components/schemas/UDvText' archetype_node_id: type: string xml: attribute: true uid: $ref: '#/components/schemas/UUidBasedId' links: type: array items: $ref: '#/components/schemas/Link' archetype_details: $ref: '#/components/schemas/Archetyped' feeder_audit: $ref: '#/components/schemas/FeederAudit' items: minItems: 1 type: array items: $ref: '#/components/schemas/UContentItem' description: See [CONTENT_ITEM](#tag/CONTENT_ITEM_schema) schema details. parameters: filter_template_id: name: template_id in: query description: 'Pattern for matching `template_id` (supports wildcards `*`) ' style: form schema: type: string example: vital* filter_version: name: version in: query description: 'Filter by version (e.g. `1.2.*` or use `*` for all versions), taken from `template_id`; if missing, then only the latest version will be returned. ' style: form schema: type: string example: 1.2.* template_id: name: template_id in: path description: 'Template identifier or partial reference. A partial `template_id` will resolve to “latest” major version of that template ' required: true style: simple schema: type: string examples: legacy: summary: Legacy format value: Vital Signs legacy_version: summary: Legacy format with major version value: vital_signs.v1 hrid: summary: Human Readable Identifier (HRID) format value: org.highmed::openEHR-EHR-COMPOSITION.t_vital_signs.v1.0.0 partial: summary: Partial HRID format, resolves to latest major version value: openEHR-EHR-COMPOSITION.t_vital_signs.v1 concept: name: concept in: query description: 'PAttern for matching `concept` (supports wildcards `*`) ' style: form schema: type: string example: '*signs*' example_detail_level: name: detail_level in: query description: 'The level of data points details of the example. ' style: form explode: true schema: type: string enum: - required - medium - complete default: required template_id_adl2: name: template_id in: path description: 'Template identifier or partial reference. A partial `template_id` will resolve to “latest” major version of that template ' required: true style: simple schema: type: string examples: hrid: summary: Human Readable Identifier (HRID) format value: org.highmed::openEHR-EHR-COMPOSITION.t_vital_signs.v1.0.0 partial: summary: Partial HRID format, resolves to latest major version value: openEHR-EHR-COMPOSITION.t_vital_signs.v1 Accept_LOCATABLE: name: Accept in: header style: simple schema: type: string enum: - application/json - application/xml - application/openehr.wt.flat+json - application/openehr.wt.structured+json example_type: name: type in: query description: 'Type of use for the data example. ' style: form explode: true schema: type: string enum: - input - output default: input fetch: name: fetch in: query description: 'Number of rows to fetch (the default depends on the implementation). ' style: form explode: true schema: type: integer example: 10 version: name: version in: path description: 'A SEMVER version number. This can be an exact version (e.g. `1.7.1`), or a pattern as partial prefix, in a form of `{major}` or `{major}.{minor}` (e.g. `1` or `1.0`), in which case the highest (latest) version matching the prefix will be considered. ' required: true style: simple schema: type: string example: '1.0' Prefer: name: Prefer in: header description: 'Request header to indicate the preference over response details. The response will contain the entire resource when the `Prefer` header has a value of `return=representation`, or only the resource identifier (e.g., the `uid`) when the value is `return=identifier`. ' required: false style: simple schema: type: string enum: - return=representation - return=minimal - return=identifier default: return=minimal at_version: name: version in: query style: form explode: true deprecated: true schema: type: string example: 1.0.1 Accept_Template_adl2: name: Accept in: header style: simple schema: type: string enum: - application/json - application/xml - text/plain Accept_JSON: name: Accept in: header style: simple schema: type: string enum: - application/json offset: name: offset in: query description: 'The row number in result-set to start result-set from (`0`-based), default is `0`. ' style: form explode: true schema: type: integer default: 0 example: 10 headers: ContentType_Template_adl2: schema: type: string enum: - application/xml - application/json - text/plain ContentType_JSON: schema: type: string enum: - application/json ContentType_LOCATABLE: schema: type: string enum: - application/xml - application/json - application/openehr.wt.flat+json - application/openehr.wt.structured+json Location_Template_adl2: description: 'The `Location` response header indicates the URL of the Template resource. ' schema: type: string format: url example: https://openEHRSys.example.com/v1/definition/template/adl2/openEHR-EHR-COMPOSITION.t_clinical_info_ds_sf.v1.0.0 ETag_Template_adl2: description: 'The `ETag` (i.e. entity tag) response header is an identifier of Template. ' schema: type: string example: W/"d8d643db-1cee-48ce-b609-12053077758f" responses: 201_Template_adl2_upload: description: "`201 Created` is returned when the template has been successfully uploaded.\nIf `Prefer` header is `return=representation`, the full resource is included in the response body; if is `return=identifier`, only its unique identifier is included. \nIf the `Prefer` header is missing or set to `return=minimal`, the body is empty.\n" headers: Location: $ref: '#/components/headers/Location_Template_adl2' ETag: $ref: '#/components/headers/ETag_Template_adl2' Content-Type: $ref: '#/components/headers/ContentType_Template_adl2' content: text/plain: schema: $ref: '#/components/schemas/OperationalTemplateV2' application/json: schema: $ref: '#/components/schemas/TemplateIdentifier' 200_Template_adl2_retrieved: description: '`200 OK` is returned when the template is successfully retrieved. ' headers: Content-Type: $ref: '#/components/headers/ContentType_Template_adl2' content: text/plain: schema: oneOf: - $ref: '#/components/schemas/OperationalTemplateV2' - type: string example: "operational_template (adl_version=2.0.6; rm_release=1.0.2; generated)\n openEHR-EHR-COMPOSITION.t_clinical_info_ds_sf.v1.0.0\n\nspecialize\n openEHR-EHR-COMPOSITION.discharge.v1\n\nlanguage\n original_language = <[ISO_639-1::en]>\n\ndescription\n lifecycle_state = <\"unmanaged\">\n original_author = <\n [\"name\"] = <\"Ian McNicoll\">\n [\"organisation\"] = <\"openEHR Foundation\">\n [\"email\"] = <\"ian.mcnicoll@openehr.org\">\n..." application/json: schema: $ref: '#/components/schemas/OperationalTemplateV2' 200_Template_example_retrieved: description: '`200 OK` is returned when the template is successfully retrieved. ' headers: Content-Type: $ref: '#/components/headers/ContentType_LOCATABLE' content: application/json: schema: oneOf: - $ref: '#/components/schemas/Composition' - $ref: '#/components/schemas/EhrStatus' - $ref: '#/components/schemas/Folder' - $ref: '#/components/schemas/Agent' - $ref: '#/components/schemas/Group' - $ref: '#/components/schemas/Organisation' - $ref: '#/components/schemas/Person' - $ref: '#/components/schemas/Role' 200_TemplateList_adl2: description: '`200 OK` is returned when the template list is successfully retrieved. ' headers: Content-Type: $ref: '#/components/headers/ContentType_JSON' content: application/json: schema: $ref: '#/components/schemas/TemplateList' example: - template_id: openEHR-EHR-COMPOSITION.t_clinical_info_ds_sf.v1.0.0 concept: Clinical detail archetype_id: openEHR-EHR-COMPOSITION.discharge.v1 created_timestamp: '2017-08-14T19:24:56.639Z' - template_id: openEHR-EHR-COMPOSITION.t_vital_signs.v1.0.0 concept: Vital Signs archetype_id: openEHR-EHR-COMPOSITION.encounter.v1 created_timestamp: '2017-08-14T19:24:56.639Z' '400': description: "`400 Bad Request` is returned when the request could not be parsed or is invalid (e.g. malformed request URL syntax, missing required header or parameter, or syntactically invalid header, parameter or content). \nThe response body MAY contain error details.\n" content: application/json: schema: $ref: '#/components/schemas/Error' 404_unknown_template_id_or_version: description: '`404 Not Found` is returned when a template with the specified `template_id` at given `version` does not exist. ' 404_unknown_template_id: description: '`404 Not Found` is returned when a template with the specified `template_id` does not exist. ' '406': description: '`406 Not Acceptable` is returned when the service cannot produce a response matching `Accept` request header, i.e. content type or format is not supported. ' 409_template_already_exists: description: '`409 Conflict` is returned when a template with same `template_id` already exists. ' x-tagGroups: - name: Resource endpoints tags: - ADL1.4 - ADL2 - Query - name: Resources tags: - TemplateList_schema - Template_schema - StoredQuery_schema