forked from hapifhir/hapi-fhir-jpaserver-starter
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0ecaed
commit 54b9a93
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
matchbox-engine/src/test/resources/mapping-language/bundleobs.map
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
map "http://test.ch/DummyBundleToBundle" = "DummyBundleToBundle" | ||
|
||
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as source | ||
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target | ||
|
||
group bundleToBundle(source src : Bundle, target tgt: Bundle) { | ||
src.entry as entry then { | ||
entry.resource as obs where $this.ofType(FHIR.Observation) -> tgt.entry as e, | ||
e.resource = create('Observation') as o, o.id = uuid() then { | ||
obs.component as c -> o.component = c; | ||
}; | ||
}; | ||
} |