Created
August 29, 2016 14:42
-
-
Save teleivo/a76ffc3132bbeff66e35636316289e26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## parse <template_attributes> | |
Example snippet: | |
<template_attributes> | |
<coding_schemes> | |
<coding_scheme name="RADLEX" designator="2.16.840.1.113883.6.256" /> | |
</coding_schemes> | |
<term type="modality"> | |
<code meaning="computed tomography" value="RID10321" scheme="RADLEX" /> | |
</term> | |
</template_attributes> | |
* get all <term> elements | |
* find the concept reference source matching the term's scheme attribute value via ConceptService.getConceptReferenceSourceByName("RADLEX") see https://github.com/openmrs/openmrs-core/blob/2.0.x/api/src/main/java/org/openmrs/api/ConceptService.java#L1043 | |
* find the concept reference term matching the term's value attribute via ConceptService.getConceptReferenceTermByCode("RID10321", referenceSource) | |
* if the concept was found add it to the member MrrtReportTemplate.terms (which should probably be a Set<ConceptReferenceTerm>) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment