When entering data or providing consent, it is essential to store who provided the data and how they are related to the patient in question. Storing a list of related persons to the patient will allow structured collection of data. this will be stored as a weak relation and would not have much depth.

Data Structure of Related Person

{
	"patient" : "patientId",
	"relationship" : "options", // Limited to <https://terminology.hl7.org/6.0.2/ValueSet-v3-PersonalRelationshipRoleType.html>
	"type" : "options", // Limitied to <https://build.fhir.org/valueset-relatedperson-relationshiptype.html>
	"name" : "str", // Can be a string for now
	"phone" : "phoneNumber", // Can be a string for now
	"address" : "str", // Can be a string for now
	"gender" : "options", // Refer to Gender Options
}

API’s for Related Person