createdAt
and updatedAt
, which are generated automatically by Clinia’s infrastructure.
To allow for more flexibility and support a system migration, Clinia’s Resource API, Relationship API, Object API, Bulk API and Bundle API allow specifying metadata information in a create or upsert operation (but not update).
System modifiable metadata properties are:
Metadata Rules
Some validation rules are imposed on those metadata to ensure consistency with system-generated values. Those are:- If a value is specified for
updatedAt
, one must also be provided forcreatedAt
- The datetime value of the
updatedAt
must be greater or equal to thecreatedAt
- The
createdAt
andupdatedAt
datetime values cannot be in the future. - The
identifier
field must contain Identifier Type with distinct combined values ofsystem
,use
andvalue
fields.- Field
use
can’t take the reserved value"source"
- Field
system
can’t take the reserved value"mdm"
- Field
Examples
Set up
Set up
This setup creates a demo registry source with minimal profiles and a relationship so the examples can run consistently.
1
Create a source
2
Create minimal profiles
3
Create a relationship definition
4
Create an object collection
Resource Upsert
Specify system-modifiable metadata when creating or replacing a resource. See the Resource API Reference.Relationship Create
Create a relationship with historical metadata on the link itself. See the Relationship API Reference. First, ensure the related resources exist (no global seeding required):Object Create
Historical metadata can also be attached to file-based objects. Include themeta
block inside the JSON payload of the multipart data
field when calling Create an object.
meta.createdAt
and meta.updatedAt
.