Skip to content

Commit

Permalink
Add SCDC/SBDC as parent concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
Leong Hui Wong committed Feb 27, 2019
1 parent 51c3020 commit a595e15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/groovy/RxTermsToFHIR.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,12 @@ Closure writeMedicationResources = {
medications.put(medId, med)


// store associated parent concepts (SCDF/SBDF) in MedicationKnowledge
// store associated parent concepts (SCDF/SBDF/SCDC/SBDC) in MedicationKnowledge
// only if the parent concepts are extracted
Set<String> parentIds = isa.get(rxCui).findAll { rxNormConcepts.containsKey(it) }

parentIds.addAll(consistsOf.get(rxCui).findAll { rxNormConcepts.containsKey(it) })

if (parentIds) {
medKnowledge.setAssociatedMedication(
parentIds.collect { new Reference("Medication/rxNorm-$it") }
Expand Down

0 comments on commit a595e15

Please sign in to comment.