Skip to main content
GET
/
mdm
/
v1
/
collections
/
{collectionKey}
/
resources
/
{resourceId}
Retrieve a unified resource from mdm collection using its id
curl --request GET \
  --url https://{workspaceId}.clinia.cloud/mdm/v1/collections/{collectionKey}/resources/{resourceId}
{
  "id": "<string>",
  "type": "<string>",
  "meta": {
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "identifier": [
      {
        "id": "<any>",
        "system": "<any>",
        "value": "<any>",
        "use": "<any>",
        "period": "<any>"
      }
    ]
  },
  "sourceResources": [
    {
      "id": "<string>",
      "type": "<string>",
      "meta": {
        "createdAt": "2023-11-07T05:31:56Z",
        "identifier": [
          {
            "id": "<any>",
            "system": "<any>",
            "value": "<any>",
            "use": "<any>",
            "period": "<any>"
          }
        ],
        "source": "<string>",
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "data": {},
      "contained": {}
    }
  ],
  "relativeIdentities": {}
}

Path Parameters

collectionKey
string
required

Key of the collection.

resourceId
string
required

The 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. - clinia-relative-identity:{value}:{relativeIdentityKey} (e.g. clinia-relative-identity:1:my-relative-identity-col). This is useful to fetch a record when knowing one of its relative identities. Note: This will only consider relative identities migrated from source records.

Response

A successful response.

id
string
required

is the id of the unified resource.

type
string
required

is the type of the unified resource.

meta
object
required

is the metadata of the unified resource.

sourceResources
object[]
required

is the list of source resources of the unified resource.

relativeIdentities
object

The relative identities associated with this resource.

I