opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
50 stars 41 forks source link

Add the ability to Link Entities to Locations #3113

Open dubdabasoduba opened 4 months ago

dubdabasoduba commented 4 months ago

Describe the feature request.

Additional context

Implementation plan (For Engineers) The plan for implementing the solution e.g. via a description or a check list for the various ordered tasks that will need to be completed. i.e. Describe how you intend to solve the problem

pld commented 4 months ago

Blocking for now.

Can describe more about how the configuration will work and discuss the pros/cons of the structure map approach. The problem I see with in code is that whether a code approach works is tightly coupled to how the Questionnaires are written, so having this in code does not provide guarantees it will work, it is still the content creators responsibility, i.e. by having this in code we're splitting the responsibility.

dubdabasoduba commented 4 months ago

Blocking for now.

Can describe more about how the configuration will work and discuss the pros/cons of the structure map approach. The problem I see with in code is that whether a code approach works is tightly coupled to how the Questionnaires are written, so having this in code does not provide guarantees it will work, it is still the content creators responsibility, i.e. by having this in code we're splitting the responsibility.

@pld after our discussion I am updating this ticket to change the acceptance criteria to deliver the following

  1. Documentation on how to link locations tied to Entities during the Entity creation (CHW & HF).
    • This includes some sample StructureMaps to generate the Entity and the LIST resource that links the Location to the Entity
  2. Documentation on how to create Locations and later link them to the Entities (MIcroPlanning).
    • This includes some sample StructureMaps to generate the Entity and the LIST resource that links the Location to the Entity

@Wambere can pick this up once she is done with her current assignments.

@ellykits this means we do not need to handle the linkage automatically via code.

pld commented 4 months ago

This sounds good, is it possible to have tooling that checks the location generation structure map you've written aligns with the format we expect for locations and their linking resources?

dubdabasoduba commented 4 months ago

This sounds good, is it possible to have tooling that checks the location generation structure map you've written aligns with the format we expect for locations and their linking resources?

I think we can. @Wambere thoughts?