Creates custom addendum resource for given source (SDCDocument/SDCWorkflow)
Extensible via ZEN
Params:
Param
Description
Type
required?
Should be used only for custom created(by user) SDCAddendum resources
Request:
POST /rpc?
method: aidbox.sdc.addendum/create-addendum
params:
addendum:
type: aidbox.sdc.addendum/Note
target:
id: doc-1
resourceType: SDCDocument
user:
id: user-1
resourceType: User
appointment: "2022-10-10T10:10:10.000Z"
text: "Temperature measuarements are not correct. Should be 100"
Response:
result:
type: aidbox.sdc.addendum/Note
id: note-1
date: "2022-12-12T10:10:10.000Z"
target:
id: doc-1
resourceType: SDCDocument
user:
id: user-1
resourceType: User
appointment: "2022-10-10T10:10:10.000Z"
text: "Temperature measuarements are not correct. Should be 100"
add-note
Creates addendum Note for SDCDocument/SDCWorkflow
Params:
Should be used for creating Note addendum for SDCDocument/SDCWorkflow
Request:
POST /rpc?
method: aidbox.sdc.addendum/add-note
params:
target:
id: doc-1
resourceType: SDCDocument
user:
id: user-1
resourceType: User
text: "Temperature measuarements are not correct. Should be 100"
Response:
result:
type: aidbox.sdc.addendum/Note
id: note-1
date: "2022-12-12T10:10:10.000Z"
target:
id: doc-1
resourceType: SDCDocument
user:
id: user-1
resourceType: User
appointment: "2022-10-10T10:10:10.000Z"
text: "Temperature measuarements are not correct. Should be 100"
add-to-history
Add history addendum for resource for given status. When resource in status 'completed/amended' - snapshot can be saved (if resource is differs)
Params:
Should be used for storing status changes for SDCDocument/SDCWorkflow.
When status is completed/amended - try find latest complete/amended History resource with snapshot and checks is resource different - if so - ads snapshot field to new History addendum
Add comment for docuement/workflow with optional path to commented value in resource
Params:
Should be used for creating Comment addendum for SDCDocument/SDCWorkflow
Request:
POST /rpc?
method: aidbox.sdc.addendum/add-comment
params:
target:
id: doc-1
resourceType: SDCDocument
user:
id: user-1
resourceType: User
path: ["loinc-59408-5" "value"]
text: "Temperature measuarements are not correct. Should be 100"
Response:
result:
type: aidbox.sdc.addendum/Comment
id: note-1
date: "2022-12-12T10:10:10.000Z"
target:
id: doc-1
resourceType: SDCDocument
user:
id: user-1
resourceType: User
path: ["loinc-59408-5" "value"]
text: "Temperature measuarements are not correct. Should be 100"
It's looks like Comment similar to Note - but semantically they are different. Comment should not releated to status of SDCDocument/SDCWorkflow and used for informal conversations, which doesn't have any legal force. Note should be used for SDCDocument/SDCWorkflow in completed/amended statuses.
get-addendums
Returns collection of addendums for the given target resource.
Params:
Request:
POST /rpc?
method: aidbox.sdc.addendum/get-addendums
params:
target:
id: doc-1
resourceType: SDCDocument