Child pages (Children Display) | ||||
---|---|---|---|---|
|
...
Name | Type | M/O | Description and constraints |
---|---|---|---|
id | string | m | id of approval |
patient_id | string | m | mpi_id hash |
granted_resources | Reference | m | list of resources that are allowed by approval |
granted_to | Reference | m | type and identifier of entity to whom access has been granted (employee or legal_entity) |
expires_at | timestamp | m | expiration date-time timestamp |
granted_by | Reference | m | type and identifier of entity who has granted access. It can be MPI_id, duarantee or MOZ/NSZU in future. |
reason | Reference | o | type and identifier of entity based on which approval has been created |
|
|
|
|
access_level | string | m | only `read` is supported |
urgent | Object | m | authentication_type and phone number |
inserted_at | datetime | m | |
inserted_by | guid | m | |
updated_at | datetime | m | |
updated_by | guid | m | |
is_verified | bool | m | identifies if Verify approval was called for record |
created_by | Reference | m | type and identifier of entity who has created approval. Reference on prm.employees.id |
Data example:
approval
Code Block | ||
---|---|---|
| ||
{ "_id" : UUID("fc15b8a3-d7cb-41f7-8cbc-7317e9ad515f"), "access_level" : "read", "expires_at" : ISODate("2019-12-27T12:54:27.000Z"), "granted_by" : { "display_value" : null, "identifier" : { "type" : { "coding" : [ { "code" : "mpi-hash", "system" : "eHealth/resources" } ], "text" : null }, "value" : "E7F9B8B5D5F1779A83CE29DC2E2A3F0BA525A31C75E645092AAD3A67B8B56291" } }, "granted_resources" : [ { "display_value" : null, "identifier" : { "type" : { "coding" : [ { "code" : "episode_of_care", "system" : "eHealth/resources" } ], "text" : null }, "value" : UUID("17f31552-f4f1-4bf1-bd49-5da282e517bf") } } ], "granted_to" : { "display_value" : null, "identifier" : { "type" : { "coding" : [ { "code" : "employee", "system" : "eHealth/resources" } ], "text" : null }, "value" : UUID("7583111f-7c90-4cb0-9941-b5414bb71ca0") } }, "inserted_at" : ISODate("2019-12-26T12:54:27.379Z"), "inserted_by" : UUID("20349bbf-726c-4d13-9f6a-b8a1bcdfd2b5"), "patient_id" : "E7F9B8B5D5F1779A83CE29DC2E2A3F0BA525A31C75E645092AAD3A67B8B56291", "reason" : { "display_value" : null, "identifier" : { "type" : { "coding" : [ { "code" : "service_request", "system" : "eHealth/resources" } ], "text" : null }, "value" : UUID("d8cf4081-eaf4-4039-8248-a00a0d44481f") } }, "is_verified" : "true", "updated_at" : ISODate("2019-12-26T12:55:11.944Z"), "updated_by" : UUID("20349bbf-726c-4d13-9f6a-b8a1bcdfd2b5"), "urgent" : { "phone_number" : "+38095*****95", "type" : "OTP" } } |
...