Clinia
RegistryResources

Get a resource from the registry

GET
/sources/{sourceKey}/v1/resources/{resourceType}/{id}

Get a resource from the registry.

headerX-Clinia-API-Key<token>
sourceKey*string

The key of the source.

resourceType*string

Type of the resource. Key of the profile.

id*string

The resource ID. It can also be an identifier with the following formats {system}:{value}:{use} (e.g. clinia:123:use).

includes?array<string>

List of relationship property key (included resources) to includes with the response. Keys must be valid relationship property key for the given resource type.

Response Body

The resource with the given id.

application/json
  1. response

The included resources or relationships. All odd number of path segments are relationships, and all even number of path segments are resources.

id*The logical identifier
type*string

Type of the resource.

meta?
data*
contained?

Resources contained in this top-level resource. Contained resources exists only within the context of this top-level resource.

includes?unknown
Example Request
curl -X GET 'https://api..clinia.cloud/sources/string/v1/resources/string/string'
Example Response
{  "id": "string",  "type": "string",  "meta": {    "createdAt": "2019-08-24T14:15:22Z",    "identifier": [      {        "id": "string",        "system": "string",        "value": "string",        "use": "string",        "period": {          "id": "string",          "start": "string",          "end": "string"        }      }    ],    "source": "string",    "updatedAt": "2019-08-24T14:15:22Z"  },  "data": {},  "contained": {    "property1": [      {        "id": "string",        "type": "string",        "meta": {          "createdAt": "2019-08-24T14:15:22Z",          "identifier": [            {              "id": "string",              "system": "string",              "value": "string",              "use": "string",              "period": {                "id": "string",                "start": "string",                "end": "string"              }            }          ],          "source": "string",          "updatedAt": "2019-08-24T14:15:22Z"        },        "data": {}      }    ],    "property2": [      {        "id": "string",        "type": "string",        "meta": {          "createdAt": "2019-08-24T14:15:22Z",          "identifier": [            {              "id": "string",              "system": "string",              "value": "string",              "use": "string",              "period": {                "id": "string",                "start": "string",                "end": "string"              }            }          ],          "source": "string",          "updatedAt": "2019-08-24T14:15:22Z"        },        "data": {}      }    ]  },  "includes": {    "property1": [      {        "id": "string",        "type": "string",        "from": {          "id": "string",          "type": "string"        },        "to": {          "id": "string",          "type": "string"        },        "meta": {          "createdAt": "2019-08-24T14:15:22Z",          "identifier": [            {              "id": "string",              "system": "string",              "value": "string",              "use": "string",              "period": {                "id": "string",                "start": "string",                "end": "string"              }            }          ],          "source": "string",          "updatedAt": "2019-08-24T14:15:22Z"        },        "data": {}      }    ],    "property2": [      {        "id": "string",        "type": "string",        "from": {          "id": "string",          "type": "string"        },        "to": {          "id": "string",          "type": "string"        },        "meta": {          "createdAt": "2019-08-24T14:15:22Z",          "identifier": [            {              "id": "string",              "system": "string",              "value": "string",              "use": "string",              "period": {                "id": "string",                "start": "string",                "end": "string"              }            }          ],          "source": "string",          "updatedAt": "2019-08-24T14:15:22Z"        },        "data": {}      }    ]  }}