Open bwalsh opened 4 years ago
We have been thinking of data like this going into a mix of Tasks, Document References and Observations. Have a look at the diagram here: https://github.com/anvilproject/cmg-data-ingest/issues/1
Thank you @torstees
At a high level, agree that we should simplify and try and use 'stock' FHIR definitions where ever possible. Findings from a quick test of linking stock DocumentReference -> ResearchStudy, DocumentReference -> Specimen.
Concerned that while DocumentReference
states "a document of any kind for any purpose.". However the subject
field, that maintains a link to a Resource "Who/what is the subject of the document", seems to be overly constricted.
Even with the introduction of the Task
, will we be able to efficiently/elegantly note that the document refers to [ResearchStudy, Specimen]
"description" : "A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed.
{
"id" : "DocumentReference.subject",
"path" : "DocumentReference.subject",
"short" : "Who/what is the subject of the document",
"definition" : "Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure).",
error The type "Reference(ResearchSubject)" does not match any of the allowed types: Reference(http://hl7.org/fhir/StructureDefinition/Patient | http://hl7.org/fhir/StructureDefinition/Practitioner | http://hl7.org/fhir/StructureDefinition/Group | http://hl7.org/fhir/StructureDefinition/Device)
error The type "Reference(ResearchStudy)" does not match any of the allowed types: Reference(http://hl7.org/fhir/StructureDefinition/Patient | http://hl7.org/fhir/StructureDefinition/Practitioner | http://hl7.org/fhir/StructureDefinition/Group | http://hl7.org/fhir/StructureDefinition/Device)
error The type "Reference(Specimen)" does not match any of the allowed types: Reference(http://hl7.org/fhir/StructureDefinition/Patient | http://hl7.org/fhir/StructureDefinition/Practitioner | http://hl7.org/fhir/StructureDefinition/Group | http://hl7.org/fhir/StructureDefinition/Device)
Thanks for pulling this together. Regarding the use case, there are some lookup / reverse lookup capabilities that will help here, so we don't have to link studies directly in.
For cases with multiple individual's data in a single file, we have two options that come to mind: 1) Create a series of DocumentReferences, one for each individual in the file, each pointing to the same file. 2) Create a group that holds all individuals in the same file.
It does make me wonder if it is wise to develop some "test cases" that we need API calls or similar to address with some of these changes as we get going.
Requester information
Please provide the following information:
Request Details
Please provide the following information about what you wanting to accomplish with your model change request:
Example IG