What resource to use to store list of pending docu...
# support
s
Howdy! We're trying to store a list of documentation types that a patient would need when a user completes a Questionnare- e.g. a user would select options x, y, z, and this would be updated in the patient's chart as pending documentation, but a little stuck on what resource to use to reference this. Was thinking about using Bundle, List, or Composition, but not sure if any of these are the right resources. Any insight here?
@kwillard95
r
Based on your description, it seems like
Composition
would be appropriate here. This section (https://hl7.org/fhir/R4/composition.html#bnr) of the FHIR spec outlines the differences between Bundle, List, and Composition, but the first two generally pertain to infrasture related operations
I would also like to point you to the
DocumentReference
(https://hl7.org/fhir/R4/documentreference.html) resource. This is essentially a pointer to documentation that is not a FHIR resource. Particularly,
DocumentReference.content.attachment
can be used to point to an external URL, or a Binary file stored in Medplum.
k
Thanks @rahul1 ! Would you say that a
DocumentResource
with an empty attachment is the best way to represent a pending document?
r
Yes. The other resource that you should consider is the
Task
(http://hl7.org/fhir/R4/task.html) resource, which is a general purpose resource to manage user workflow. I think combining a task ("Patient needs to provide documentation") with an empty DocumentReference (as the
Task.focus
) would be the right way to go. Using Tasks sets you up nicely to handle other workflow items down the line
k
Thank you so much @rahul1. I think Task, along with the DocumentReference will be my strategy. This was most helpful!
r
@stephany @kwillard95 I just wanted to let you know that we've released two new guides on these topics: - https://www.medplum.com/docs/charting/external-documents - https://www.medplum.com/docs/careplans/tasks
s
thank you so much @rahul1!!
159 Views