How do we intend to Sync both Questionnaire and their receptive Structure maps for Quest? ? #623
-
With the current implementation, we need to create a structure map for some questionnaires in order to map and perform an extraction to get the respective FHIR resources. How do envision to do do this so that we do not need to write StructureMaps in ap for each respective questionnaire but instead sync both Questionnaires and their respective StructureMaps from HAPI |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
We should be able to follow the same pattern as in this PR, https://github.com/opensrp/fhircore/pull/590/files, just as we sync Questionnaires IDd by publisher (which we'll replace later on) we can do the same for StructureMaps. Not sure what the best way to link Questionnaire to a specific StructureMap is, useContext could solve this generally in the future, for now I suggest a convention where the |
Beta Was this translation helpful? Give feedback.
-
I see two potential solutions here related to the the pattern implemented for QuestionnaireSync based on publisher.
Either of those will take care of syncing the StructureMaps to the device. I am not very familiar with the StructureMap resource so I am not sure what the recommended approach is for referencing the source Questionnaire for the StructureMap. I would think that there is likely a spec for that in the SDC IG. I think that we need to have a look the below to see what the recommend approach is for defining a Questionnaire as the source of a StructureMap for extraction. |
Beta Was this translation helpful? Give feedback.
-
Also noting that we may require other types of extraction in other cases for some questionnaires i.e. see more here http://hl7.org/fhir/uv/sdc/2019May/extraction.html |
Beta Was this translation helpful? Give feedback.
I see two potential solutions here related to the the pattern implemented for QuestionnaireSync based on publisher.
Either of those will take care of syncing the StructureMaps to the device.
I am not very familiar with the StructureMap resource so I am not sure what the recommended approach is for referencing the source Questionnaire for the StructureMap. I would think that there is likely a spec for that in the SDC IG.
I think that we need to have a look the below to see wha…