Has anyone created the workflow in OpenMRS that ties the record of one patient to another, such as a child’s patient record to the mother’s patient record? My assumption is that the id of the parent should be attached to the childs (or vice versa) as a patient attribute, but maybe there is a better way?
Adding @steliomo to this conversation so he can track the responses…
Interesting - the docs definitely don’t explain a lot about those. I see in OpenMRS admin that you can add “relationship types”, but it’s unclear if adding one automatically makes that available in the create/edit patient form. Secondly, I’m not sure what the relationship type admin form actually is asking for: A is to B, B is to A?
I would definitely create a person record for both the mother and the child.
I would then make sure that the relationship type of “parent sibling” exists in the relationship_type table that exists, and then establish relationships as @pascal describes.
So in this case, the mother and child both must have a patient record in the database, correct? No flexibility around recording a local identifier for a mother that doesn’t have a record in the facility database?
A person has a lower threshold for information than a patient. I don’t think you need much info to create a person, Are you suggesting all you have is a mother’s ID, but not a name, etc?
Ah, I missed what you were saying - person record, not patient. That makes sense. The use cases include situations where the mother is coming from another service area in the same facility (so would have a patient record already), and when the mother is coming from outside the facility (so would not have any record, but could add a person record). In the latter case, the mother would have a patient record in another openmrs instance at a different facility, that eventually we would want to match up to this record in a consolidated database. I know…I’m adding complexities…
Yep, if you are literally trying to conjoin two individual records together, from two related individuals, then relationships are clearly the way to go in OpenMRS.
It sounds like you’re needing to create “stubs” mostly on the child side. You can create persons for this purpose, and then “graduate” those person records to patients once they have clinical data related to them.
We used the same approach that Pascal has suggested i.e Patient Relationships, though it was for Household-Dependent relation where we had connected all Household Members with Household Head like image below.