FamilyHistory Resource
This is the API documentation for the OpenMRS FHIR Module ,FamilyHistory Resource.
FamilyHistory Resource represents Significant health events and conditions for people related to the subject relevant in the context of care for the subject. For more information, please refer http://hl7-fhir.github.io/familyhistory.html
Shown below is an example of how an OpenMRS FamilyHistory objects would map to FHIR FamilyHistory resource, as proposed by Grahame Grieve.
The left side of the relationship indicates the OpenMRS attribute, while the right indicated the FHIR resource mapping.
FamilyHistory
Integer relationshipId :: not mapped
Person personA :: If PersonA is the requesting patient of family history then it will be mapped to FamilyHistory.subject else person will be map to relation attributes accordingly
Person's Relationships will be map as follow
RelationshipType relationshipType ::
String aIsToB :: FamilyHistory.relation.relationship (if patient resource relation ship is A to B)
String bIsToA :: FamilyHistory.relation.relationship (if patient resource relation ship is B to A)
Person personB :: If PersonA is the requesting patient of family history then it will be mapped to FamilyHistory.subject else person name will be map to FamilyHistory.relation.name
Related person bithday :: FamilyHistory.relation.born[x]
Shown below is a sample FHIR FamilyHistory Resource.
FHIR FamilyHistory Resource
{
"resourceType": "FamilyHistory",
"id": "dda12af7-1691-11df-97a5-7038c432aabf",
"patient": {
"reference": "Patient/example",
"display": "Peter Patient"
},
"relation": [
{
"relationship": {
"coding": [
{
"system": "http://hl7.org/fhir/familial-relationship",
"code": "father"
}
]
},
"condition": [
{
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "315619001",
"display": "Myocardial Infarction"
}
],
"text": "Heart Attack"
},
"onsetAge": {
"value": 74,
"units": "a",
"system": "http://unitsofmeasure.org"
},
"note": "Was fishing at the time. At least he went doing someting he loved."
}
]
}
]
}
Available RESTful web services for the FamilyHistory Resource supported by the API
url | description |
---|---|
/ws/fhir/FamilyHistory/{patientId} | Above request will fetch the FamilyHistory for the given unique uuid. Here id represents, the logical resource id(uuid) associated with the resource. |
/ws/fhir/FamilyHistory?_id={patientId} | Above request will fetch all the FamilyHistory using the given uuid value. This will give a List of FamilyHistory as the response.Here _id parameter represents, the logical resource id(uuid) associated with the resource. |
/ws/fhir/FamilyHistory?subject={patientId} | Above request will fetch all the FamilyHistory related to the given patient id. This will give a List of FamilyHistory as the response. Here subject parameter represents, the uuid of the patient whose history is about. |