Hi All
I am getting an error while trying to convert Patient from 3 to 4 version . Please let me know possible reasons . Help is very much appreciated
No matches found for rule ‘DomainResource’. Reference found in http ://hl7.org/fhir/StructureMap/Patient3to4
Here is the error message and command
java -jar C:\JavaValidator\validator_cli.jar C:\JavaValidator\Patient\Input\patient-example3.json -transform http://hl7.org/fhir/StructureMap/Patient3to4 -version 4.0.1 -ig C:\JavaValidator\Patient\maps\PatientR3toR4.map -output C:\JavaValidator\patient\Output\output.json
FHIR Validation tool Version 5.6.46 (Git# eca2fa5a5ce6). Built 2022-05-12T10:35:44.416Z (10 days old)
Java: 1.8.0_333 from C:\Program Files\Java\jre1.8.0_333 on amd64 (64bit). 2695MB available
Paths: Current = C:\Users\pviswanathan, Package Cache = C:\Users\pviswanathan.fhir\packages
Params: C:\JavaValidator\Patient\Input\patient-example3.json -transform ht tp://hl7.org/fhir/StructureMap/Patient3to4 -version 4.0.1 -ig C:\JavaValidator\Patient\maps\PatientR3toR4.map -output C:\JavaValidator\patient\Output\output.json
Loading
Load FHIR v4.0 from hl7.fhir.r4.core#4.0.1 - 4575 resources (00:04.0979)
Load hl7.terminology#3.1.0 - 4117 resources (00:02.0075)
Terminology server ht tp://tx .fhir.org - Version 2.0.14 (00:01.0400)
Load C:\JavaValidator\Patient\maps\PatientR3toR4.map …Detect format for C:\JavaValidator\Patient\maps\PatientR3toR4.map
- 1 resources (00:00.0042)
Get set… go (00:00.0087)
…Detect format for C:\JavaValidator\Patient\Input\patient-example3.json
Start Transform ht tp://hl7.org/fhir/StructureMap/Patient3to4
Group : Patient; vars = source variables [src: (Patient)], target variables [tgt: (Patient)], shared variables []
…Failure: No matches found for rule ‘DomainResource’. Reference found in htt p://hl7.org/fhir/StructureMap/Patient3to4
org.hl7.fhir.exceptions.FHIRException: No matches found for rule ‘DomainResource’. Reference found in http://hl7.org/fhir/StructureMap/Patient3to4
at org.hl7.fhir.r5.utils.structuremap.StructureMapUtilities.resolveGroupReference(StructureMapUtilities.java:1488)
at org.hl7.fhir.r5.utils.structuremap.StructureMapUtilities.executeGroup(StructureMapUtilities.java:1199)
at org.hl7.fhir.r5.utils.structuremap.StructureMapUtilities.transform(StructureMapUtilities.java:1166)
at org.hl7.fhir.validation.ValidationEngine.transform(ValidationEngine.java:504)
at org.hl7.fhir.validation.ValidationEngine.transform(ValidationEngine.java:489)
at org.hl7.fhir.validation.cli.services.ValidationService.transform(ValidationService.java:242)
at org.hl7.fhir.validation.ValidatorCli.doValidation(ValidatorCli.java:242)
at org.hl7.fhir.validation.ValidatorCli.main(ValidatorCli.java:164)
Done. Times: Loading: 00:09.0268. Max Memory = 2Gb