curl --request POST \
--url https://{workspaceId}.clinia.cloud/sources/{sourceKey}/v1/resources/{resourceType} \
--header 'Content-Type: application/json' \
--header 'X-Clinia-API-Key: <api-key>' \
--data '
{
"data": {},
"id": "<string>",
"meta": {
"createdAt": "2023-11-07T05:31:56Z",
"identifier": [
{
"id": "<string>",
"system": "<string>",
"value": "<string>",
"use": "<string>",
"period": {
"id": "<string>",
"start": "<string>",
"end": "<string>"
}
}
],
"updatedAt": "2023-11-07T05:31:56Z"
},
"contained": {}
}
'{
"taskId": "<string>",
"status": "ACCEPTED",
"resource": {
"id": "<string>",
"type": "<string>",
"data": {},
"meta": {
"createdAt": "2023-11-07T05:31:56Z",
"identifier": [
{
"id": "<string>",
"system": "<string>",
"value": "<string>",
"use": "<string>",
"period": {
"id": "<string>",
"start": "<string>",
"end": "<string>"
}
}
],
"source": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
},
"contained": {}
}
}Create a resource in the registry.
curl --request POST \
--url https://{workspaceId}.clinia.cloud/sources/{sourceKey}/v1/resources/{resourceType} \
--header 'Content-Type: application/json' \
--header 'X-Clinia-API-Key: <api-key>' \
--data '
{
"data": {},
"id": "<string>",
"meta": {
"createdAt": "2023-11-07T05:31:56Z",
"identifier": [
{
"id": "<string>",
"system": "<string>",
"value": "<string>",
"use": "<string>",
"period": {
"id": "<string>",
"start": "<string>",
"end": "<string>"
}
}
],
"updatedAt": "2023-11-07T05:31:56Z"
},
"contained": {}
}
'{
"taskId": "<string>",
"status": "ACCEPTED",
"resource": {
"id": "<string>",
"type": "<string>",
"data": {},
"meta": {
"createdAt": "2023-11-07T05:31:56Z",
"identifier": [
{
"id": "<string>",
"system": "<string>",
"value": "<string>",
"use": "<string>",
"period": {
"id": "<string>",
"start": "<string>",
"end": "<string>"
}
}
],
"source": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
},
"contained": {}
}
}The key of the source.
Type of the resource. Key of the profile.
Dynamic data attributes, based on the resource type.
Id of the resource (optional). When not provided or equal to the special @rootId token, the id will be generated. When provided and not equal to @rootId, id must follow pattern: ^[a-zA-Z0-9-][\w-]{1,92}$. Note:
@rootId token can be used in any properties of type reference and, when provided, will be replaced by the actual id of the created resource.Show child attributes
Instant of creation of the resource.
Identifiers of the resource.
Note: Combination of source, value and use must be unique.
Show child attributes
Unique id for the property within a resource (for internal references). This may be any string value that does not contain spaces.
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
The purpose of this identifier.
Time period when identifier was/is in use.
Show child attributes
Unique id for the property within a resource (for internal references). This may be any string value that does not contain spaces.
The start of the period. The boundary is inclusive.
The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
Last update of the resource.
Resources contained in this top-level resource. Contained resources exists only within the context of this top-level resource.
Show child attributes
Show child attributes
Type of the resource.
When provided, the id must follow the semantic of contained resource ids (e.g. clinic/1/healthService/1).
The contained ids can be provided even if the top-level id is not provided (or equal to @rootId). In those cases,
use the special @rootId token to refer to the top-level id (e.g. clinic/@rootId/healthService/1).
If not provided, the id of the given contained will be generated sequentially per contained key, starting at 1.
For instance, if there are 3 contained for the key healthService, they will be generated in order as such:
[clinic/1/healthService/1, clinic/1/healthService/2, clinic/1/healthService/3]
When some contained ids are provided and some are not, the generated ids will still be sequential starting from 1, ignoring collisions with provided ids.
For instance, if you insert 5 contained resources under the same key healthService and only provide ids like such:
[clinic/1/healthService/3, clinic/1/healthService/5, clinic/1/healthService/100], the outcome will be
[clinic/1/healthService/3, clinic/1/healthService/1, clinic/1/healthService/2, clinic/1/healthService/5, clinic/1/healthService/100].
Show child attributes
Instant of creation of the resource.
Identifiers of the resource.
Note: Combination of source, value and use must be unique.
Show child attributes
Unique id for the property within a resource (for internal references). This may be any string value that does not contain spaces.
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
The purpose of this identifier.
Time period when identifier was/is in use.
Show child attributes
Unique id for the property within a resource (for internal references). This may be any string value that does not contain spaces.
The start of the period. The boundary is inclusive.
The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
Last update of the resource.
A successful response when the resource was created.
Response when a task has been executed synchronously and the results are immediately persisted.
The task identifier. Used to track an async task in the system. Use the task ID to poll for completion status. The taskId holds different prefix to represent different tasks.
s_<id>.bk_<id> (deprecated: <id> only).bd_<id> (deprecated: <id> only).pg_<id> (deprecated: purge:<id>).Status of the task submission.
ACCEPTED: The task has been accepted for asynchronous processing. The task will be executed in the background.PERSISTED: The task has been executed synchronously and the results are immediately persisted.ACCEPTED, PERSISTED Show child attributes
Id of the resource.
Type of the resource.
Dynamic data attributes, based on the resource type.
Show child attributes
Instant of creation of the resource.
Identifiers of the resource.
Note: Combination of source, value and use must be unique.
Show child attributes
Unique id for the property within a resource (for internal references). This may be any string value that does not contain spaces.
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
The purpose of this identifier.
Time period when identifier was/is in use.
Show child attributes
Unique id for the property within a resource (for internal references). This may be any string value that does not contain spaces.
The start of the period. The boundary is inclusive.
The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
The source of the resource.
Last update of the resource.
Resources contained in this top-level resource. Contained resources exists only within the context of this top-level resource.
Show child attributes
Show child attributes
Type of the resource.
Show child attributes
Instant of creation of the resource.
Identifiers of the resource.
Note: Combination of source, value and use must be unique.
Show child attributes
Unique id for the property within a resource (for internal references). This may be any string value that does not contain spaces.
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
The purpose of this identifier.
Time period when identifier was/is in use.
Show child attributes
Unique id for the property within a resource (for internal references). This may be any string value that does not contain spaces.
The start of the period. The boundary is inclusive.
The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
The source of the resource.
Last update of the resource.
Was this page helpful?