Skip to content

Commit

Permalink
Fixed updated logical model in maps and updated .http file to referen…
Browse files Browse the repository at this point in the history
…ce renamed files.
  • Loading branch information
lukeaduncan committed Oct 20, 2023
1 parent dacf182 commit fed81ae
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion input/maps/IMMZD4LMToResources.fml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
map "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD4LMToResources" = "IMMZD4LMToResources"

uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD4CheckContraindications" alias IMMZD4 as source
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD4CheckContraindicationsMeasles" alias IMMZD4 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

group IMMZD4ToBundle (source immz : IMMZD4, target bundle: Bundle) {
Expand Down
2 changes: 1 addition & 1 deletion input/maps/IMMZD4QRToLM.fml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
map "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD4QRToLM" = "IMMZD4QRToLM"

uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD4CheckContraindications" alias IMMZD4 as target
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD4CheckContraindicationsMeasles" alias IMMZD4 as target

group QRespToIMMZD4 ( source qr : QResp, target immz : IMMZD4) {

Expand Down
4 changes: 2 additions & 2 deletions input/maps/IMMZD4QRToResources.fml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
map "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD4QRToResources" = "IMMZD4QRToResources"

uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD4CheckContraindications" alias IMMZD4 as source
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD4CheckContraindicationsMeasles" alias IMMZD4 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

imports "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD4QRToLM"
Expand All @@ -11,7 +11,7 @@ group QRespToBundle (
source qr : QResp,
target bundle: Bundle
) {
qr -> create("http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD4CheckContraindications") as model
qr -> create("http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD4CheckContraindicationsMeasles") as model
then{
qr -> model then QRespToIMMZD4( qr, model) "QRtoLM";
qr -> bundle then IMMZD4ToBundle( model, bundle ) "LMtoBundle";
Expand Down
18 changes: 9 additions & 9 deletions tools/maps.http
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PUT {{host}}/StructureMap/IMMZ-C-QRToLM HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-C-QRToLM.fml
< ../input/maps/IMMZCQRToLM.fml

### Test Transform of QR to LM
### after running sushi
Expand Down Expand Up @@ -38,7 +38,7 @@ PUT {{host}}/StructureMap/IMMZ-C-LMToPatient HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-C-LMToPatient.fml
< ../input/maps/IMMZCLMToPatient.fml

### Test Transform of LM to Patient
POST {{host}}/StructureMap/$transform?source=http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZCLMToPatient
Expand All @@ -52,7 +52,7 @@ PUT {{host}}/StructureMap/IMMZ-C-QRToPatient HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-C-QRToPatient.fml
< ../input/maps/IMMZCQRToPatient.fml

### Test Transform of QR to Patient
### after running sushi
Expand All @@ -69,7 +69,7 @@ PUT {{host}}/StructureMap/IMMZD4QRToLM HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-D4-QRToLM.fml
< ../input/maps/IMMZD4QRToLM.fml

### Test Transform of QR to LM
POST {{host}}/StructureMap/$transform?source=http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD4QRToLM
Expand All @@ -83,14 +83,14 @@ PUT {{host}}/StructureMap/IMMZD4LMToResources HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-D4-LMToResources.fml
< ../input/maps/IMMZD4LMToResources.fml

### Post the StructureMap for Contraindications with transform included
PUT {{host}}/StructureMap/IMMZD4QRToResources HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-D4-QRToResources.fml
< ../input/maps/IMMZD4QRToResources.fml

### Test Transform of QR to Bundle
POST {{host}}/StructureMap/$transform?source=http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD4QRToResources
Expand All @@ -113,7 +113,7 @@ PUT {{host}}/StructureMap/IMMZD1QRToLM HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-D1-QRToLM.fml
< ../input/maps/IMMZD1QRToLM.fml

### Test Transform of QR to LM
POST {{host}}/StructureMap/$transform?source=http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1QRToLM
Expand All @@ -127,14 +127,14 @@ PUT {{host}}/StructureMap/IMMZD1LMToResources HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-D1-LMToResources.fml
< ../input/maps/IMMZD1LMToResources.fml

### Post the StructureMap for Client History with transform included
PUT {{host}}/StructureMap/IMMZD1QRToResources HTTP/1.1
Accept: application/fhir+json;fhirVersion=4.0
Content-Type: text/fhir-mapping

< ../input/maps/IMMZ-D1-QRToResources.fml
< ../input/maps/IMMZD1QRToResources.fml

### Test Transform of QR to Resources
POST {{host}}/StructureMap/$transform?source=http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1QRToResources
Expand Down

0 comments on commit fed81ae

Please sign in to comment.