Get Parental Heights from LOINC if FamilyHistory resource is unavailable. #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue : The open source version of growth chart gets the Father/Mother heights from the FamilyHistory resource. If an EHR has not implemented the Family History FHIR resource then the application provides for no other way to automatically get these heights from the patients chart thus leaving the user with an option to manually enter the heights using the Settings gear icon.
Solution : If the EHR has availability for Observation's resource then it can leverage 2 Parental Height LOINC's(83845-8 , 83846-6) to fetch the necessary heights. This change adds the ability to use LOINC's using the Observation's resource to fetch Father/Mother heights from the EHR.
Consideration: In this change the app attempts to make the FamilyHistory resource call but also request observation's for these additional LOINC's (for parental heights) and uses the heights returned by the LOINC's if FamilyHistory resource call fails.