medic / cht-interoperability

CHT - eCHIS interoperability project
GNU Affero General Public License v3.0
2 stars 3 forks source link

Add an endpoint in the mediator to create practitioners #31

Open njogz opened 1 year ago

samuelimoisili commented 1 year ago

Hi, I don't understand where a practitioner comes in the flow. Can you please explain it? Is it possible to have a session?

njogz commented 1 year ago

Good question. The practitioner resource is listed here as medium priority for resources required to support interoperability. In our specific use case the CHW is the practitioner and can be included in the encounter resource that is created once the task that is sent for follow up is completed.

samuelimoisili commented 1 year ago

Okay, are we to create a practitioner before creating a task? Or when creating the task? It also seems like the practitioner is attached to a task, are we to take note of the practitioner upon creation of the task? Or when the task is completed?

njogz commented 1 year ago

The creation of the practitioner can happen when a new user (CHW) is added to the CHT similar how we are creating patients from the CHT now. The practitioner will be attached to the encounter that is created when the follow up task is completed.