MDMCollections
Retrieve a unified resource from mdm collection using its id
GET
Retrieve a unified resource from mdm collection using its id.
header
X-Clinia-API-Key<token>collectionKey*stringKey of the collection.
resourceId*stringThe Unified resource id.. Can also be an identifier with one of the following formats:
source:{sourceRecordId}:{sourceKey}.{sourceRecordType}(e.g.source:123:mySourceA.clinic). This is useful to fetch a record when knowing its source record id.
A successful response.
application/json- response
id*stringis the id of the unified resource.
type*stringis the type of the unified resource.
meta*is the metadata of the unified resource.
sourceResources*array<>is the list of source resources of the unified resource.
curl -X GET 'https://api..clinia.cloud/mdm/v1/collections/string/resources/string'Example Response
{ "id": "string", "type": "string", "meta": { "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "identifier": [ { "id": "string", "system": "string", "value": "string", "use": "string", "period": { "id": "string", "start": "string", "end": "string" } } ] }, "sourceResources": [ { "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": {} } ] } } ]}