Skip to content

Commit

Permalink
Merge pull request #190 from ahdis/oe_core_1748
Browse files Browse the repository at this point in the history
FML test map for where clause
  • Loading branch information
grahamegrieve authored Oct 6, 2024
2 parents c8747f7 + cd17fa8 commit 03ee82d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions r5/structure-mapping/whereclause.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
map "http://ahdis.ch/matchbox/fml/whereclause" = "whereclause"
uses "http://hl7.org/fhir/StructureDefinition/CapabilityStatement" alias CapabilityStatement as source
uses "http://hl7.org/fhir/StructureDefinition/CapabilityStatement" alias CapabilityStatement as target

group CapabilityStatement(source src: CapabilityStatement, target tgt : CapabilityStatement) {
src.rest as srcrest -> tgt.rest as tgtrest then {
srcrest.resource as srcres -> tgtrest.resource as tgtres then {
srcres.interaction as srcint where (srcint.code != 'read') log(srcint.code) -> tgtres.interaction as tgtint then {
srcint.code as code -> tgtint.code = code;
} "interaction";
} "resource";
} "rest";
}

0 comments on commit 03ee82d

Please sign in to comment.