Skip to content

Commit 54ae9a1

Browse files
committed
use meta field for location if set
1 parent 32206c0 commit 54ae9a1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/de/uksh/medic/etl/openehrmapper/EHRParser.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ public Composition build(Map<String, Object> map, Map<String, Object> datatypes)
136136
identifier.setId(hcf.get("id").get(0));
137137
context.setHealthCareFacility(new PartyIdentified(null, hcf.get("name").get(0), List.of(identifier)));
138138
}
139+
if (map.containsKey("location")) {
140+
context.setLocation(((List<String>) map.get("location")).get(0));
141+
}
139142
composition.setContext(context);
140143
ItemTree itemTree = new ItemTree();
141144
context.setOtherContext(itemTree);

0 commit comments

Comments
 (0)