Stream: who-smart-guidelines
Topic: using mCSD
Carl Leitner (Feb 01 2022 at 14:47):
@Luke Duncan @Richard Stanley @Kunjan Patel @Peter Lubell-Doughtie @Christopher Haskew for discussion on mCSD and hierarchy support / library
Carl Leitner (Feb 01 2022 at 19:18):
adding @Jenny Thompson as well
Carl Leitner (Feb 01 2022 at 19:18):
@Richard Stanley what's the status federated facility registry/admin hierarchy work?
Richard Stanley (Feb 01 2022 at 19:24):
GOFR supports HAPI partitions and manages them. So, each data source has its own partition and can be shared between users. The basic UI support for navigating between them is just done. But, managing a central partition that uses shared data from other partition is a WIP right now.
Richard Stanley (Feb 01 2022 at 19:27):
Another potentially helpful view of how mCSD sees the world with core resources: https://raw.githubusercontent.com/IHE/ITI.mCSD/main/input/images/mcsd1.png
Luke Duncan (Feb 01 2022 at 20:14):
Just for completeness, here is the mCSD IG (which is currently out for public comment, so feel free to make comments, although it's mainly on the conversion to an IG): https://profiles.ihe.net/ITI/mCSD/index.html
Matt Berg (Feb 01 2022 at 20:31):
@Benjamin Mwalimu or @Francis Otieno can you comment when you have the chance of how we've implemented this with FHIR Core?
Luke Duncan (Feb 01 2022 at 20:45):
Sorry, had computer problems. Here's the whitepaper as well: https://profiles.ihe.net/ITI/papers/mCSD/index.html
Peter Lubell-Doughtie (Feb 01 2022 at 22:35):
here's the hapi extension we're using for locations right now, https://github.com/opensrp/hapi-fhir-opensrp-extensions/tree/main/location
Benjamin Mwalimu (Feb 02 2022 at 07:29):
https://github.com/opensrp/hapi-fhir-opensrp-extensions/blob/main/location/src/main/java/org/smartregister/extension/rest/LocationHierarchyResourceProvider.java This class generates a location hierarchy based on the location resource partOf
attribute.
The endpoint accepts a location identifier
then returns the corresponding hierarchy as a resource. Here is a link to test out the implementation https://fhir.labs.smartregister.org/fhir/LocationHierarchy?identifier=eff94f33-c356-4634-8795-d52340706ba9
Demo user credentials
username: demo
password: Amani123
Luke Duncan (Feb 02 2022 at 14:04):
Ah, ok. I thought you were doing multiple hierarchies, it looks like this is just for the single partOf hierarchy. the FHIR spec also allows you to use :above and :below on queries to get results for hierarchies like that. As well as _include:iterate and _revInclude:iterate, although in HAPI they still support using _include:recurse which was an older naming. I'm not sure if it supports the latest naming, but the :recurse does the same thing. Hopefully they've updated to include the current naming.
Luke Duncan (Feb 02 2022 at 14:06):
GraphQL may also be an option, but I don't know of the state of implementation for that either.
Carl Leitner (Feb 02 2022 at 14:27):
Peter Lubell-Doughtie said:
here's the hapi extension we're using for locations right now, https://github.com/opensrp/hapi-fhir-opensrp-extensions/tree/main/location
this looks like it is fulfilling a requests "give me the hierarchy given a location ID" right? is there a capability statement / operation definition that underpins this?
I am not sure this aligned to mCSD 3.90.4.1.2.2 http://ihe.net/fhir/StructureDefinition/IHE_mCSD_hierarchy_extension which is for hierarchies expressed through organization.
Peter Lubell-Doughtie (Feb 02 2022 at 21:43):
Carl Leitner said:
Peter Lubell-Doughtie said:
here's the hapi extension we're using for locations right now, https://github.com/opensrp/hapi-fhir-opensrp-extensions/tree/main/location
this looks like it is fulfilling a requests "give me the hierarchy given a location ID" right? is there a capability statement / operation definition that underpins this?
I am not sure this aligned to mCSD 3.90.4.1.2.2 http://ihe.net/fhir/StructureDefinition/IHE_mCSD_hierarchy_extension which is for hierarchies expressed through organization.
Peter Lubell-Doughtie (Feb 02 2022 at 21:44):
^ sorry still getting used to zulip
Peter Lubell-Doughtie (Feb 02 2022 at 21:48):
Carl Leitner said:
Peter Lubell-Doughtie said:
here's the hapi extension we're using for locations right now, https://github.com/opensrp/hapi-fhir-opensrp-extensions/tree/main/location
this looks like it is fulfilling a requests "give me the hierarchy given a location ID" right? is there a capability statement / operation definition that underpins this?
I am not sure this aligned to mCSD 3.90.4.1.2.2 http://ihe.net/fhir/StructureDefinition/IHE_mCSD_hierarchy_extension which is for hierarchies expressed through organization.
these issues are related, https://github.com/opensrp/fhircore/issues/188 and https://github.com/opensrp/fhircore/issues/189, but we don't something more official. The IHE link is giving me a page not found, do you have another link to the mCSD org hierarchy? Although it's designed for organizations, does it make sense to use that for locations?
Carl Leitner (Feb 03 2022 at 11:50):
yes (if my location you mean geographic objects and not FHIR Location resources). one use case is that some countries (e.g. Botswana) have two geographic hierarchies - there are administrative districts as well as health districts. The FBO sector in Tanzania is another example of multiple geographic hierarchies. Both of these (right @Luke Duncan ? ) would be have different FHIR Organizational hierarchies with FHIR Locations for the leaf nodes = health facilities.
Carl Leitner (Feb 03 2022 at 11:51):
the link with the extension is just the declaration of the extension http://ihe.net/fhir/StructureDefinition/IHE_mCSD_hierarchy_extension which is referenced in the mCSD PDF https://www.ihe.net/uploadedFiles/Documents/ITI/IHE_ITI_Suppl_mCSD.pdf
Luke Duncan (Feb 03 2022 at 13:04):
You should use this for mCSD: https://profiles.ihe.net/ITI/mCSD/index.html
Luke Duncan (Feb 03 2022 at 13:05):
In mCSD, facilities are represented by a Location and Organization pair. The multiple hierarchies are handled in the Organization side by the extension Carl mentions. https://profiles.ihe.net/ITI/mCSD/StructureDefinition-IHE.mCSD.OrganizationHierarchy.html
Last updated: Apr 12 2022 at 19:14 UTC