Cohort synchronization

This table shows how OpenMRS Cohort object is mapped to FHIR Group object.

Keyword extension means that FHIR Extension has to be used to synchronize this field.

OpenMRS fieldDB fieldFHIR field
name : Stringname : varchar(255)name : StringType
description : Stringdescription : varchar(1000)extension
uuid : Stringuuid : varchar(38)id : IdType

Below table shows how other values of fields in FHIR Group are populated

FHIR FieldValue
type : Enumeration<Group.GroupType>GroupType.PERSON
quantity : UnsignedIntTypeBased on size of Cohort.memberIds list
member : List<Group.GroupMemberComponent>Mapped from Cohort.memberIds list

Below table shows how FHIR GroupMemberComponent object is mapped.

FHIR fieldValue
entityReference to patient