FHIR Chat · java validator DSTU2 · implementers

Stream: implementers

Topic: java validator DSTU2


view this post on Zulip Abigail Huang (Jun 02 2021 at 15:41):

Hi all!
Does anyone know if the java validator works for validating bundles in DSTU2? (And if so, how I could get it to work?) When I validate individual DSTU2 resources it works correctly. However, once I try to run a DSTU2 bundle it seems to validate against a different profile.

As seen below, I specify -version 1.0.2 but then it loads hl7.fhir.r5.core. In the error message, it says that practitionerRole is not allowed by the Practitioner profile when it actually is in DSTU2. Same for patient in the Condition profile.

Any thoughts/advice would be greatly appreciated. Thanks so much!

abigailhuang-macbookpro2:downloads abigailhuang$ java -jar validator_cli1.jar testbundle.json -version 1.0.2
FHIR Validation tool Version 5.4.2 (Git# 552ef55adaf0). Built 2021-05-21T18:15:07.271Z (12 days old)
  Java:   16.0.1 from /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home on x86_64 (64bit). 8192MB available
  Paths:  Current = /Users/abigailhuang/Downloads, Package Cache = /Users/abigailhuang/.fhir/packages
  Params: testbundle.json -version 1.0.2
Loading
  Load FHIR v1.0 from hl7.fhir.r2.core#1.0.2 - 3378 resources (00:05.0253)
  Load hl7.terminology#2.1.0 - 3767 resources (00:00.0943)
  Terminology server http://tx.fhir.org - Version 1.9.372 (00:01.0597)
  Get set...  go (00:00.0824)
Validating
  Validate testbundle.json  Load hl7.fhir.r5.core#current - 1990 resources (00:01.0070)
 00:08.0170
Done. Times: Loading: 00:08.0983, validation: 00:09.0241. Memory = 548Mb

*FAILURE*: 14 errors, 2 warnings, 3 notes
  Error @ Bundle.entry[1].resource.ofType(Practitioner).practitionerRole[0] (line 191, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[1].resource.ofType(Practitioner).practitionerRole[1] (line 205, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[2].resource.ofType(Practitioner).practitionerRole[0] (line 270, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[2].resource.ofType(Practitioner).practitionerRole[1] (line 284, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[3].resource.ofType(Condition).patient (line 310, col15) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Condition

view this post on Zulip Lloyd McKenzie (Jun 02 2021 at 17:31):

Can you attach your test.json file?

view this post on Zulip Lloyd McKenzie (Jun 02 2021 at 17:31):

Also @Mark Iantorno

view this post on Zulip Mark Iantorno (Jun 02 2021 at 17:32):

hi hello

view this post on Zulip Mark Iantorno (Jun 02 2021 at 17:32):

yeah once you attach the test.json I'll give it a go

view this post on Zulip Mark Iantorno (Jun 02 2021 at 17:32):

thanks Lloyd

view this post on Zulip Mark Iantorno (Jun 02 2021 at 17:33):

please tag me in Zulip when you upload so I get a notification

view this post on Zulip Abigail Huang (Jun 02 2021 at 22:18):

@Lloyd McKenzie @Mark Iantorno
Thanks so much for testing this out! Most greatly appreciated. I have uploaded both a DSTU2 bundle as well as a single Practitioner resource from the bundle so you can compare the error messages and behavior. The single resource seems to work.

testbundle.json testresource.json

view this post on Zulip Grahame Grieve (Jun 03 2021 at 00:30):

this is what I get:

FHIR Validation tool Version 5.3.12-SNAPSHOT (Git# 9a82457b36c6). Built 2021-05-12T06:58:07.350+10:00 (22 days old)
  Java:   11.0.9 from C:\Program Files\Java\jdk-11.0.9 on amd64 (64bit). 16344MB available
  Paths:  Current = C:\temp\validator, Package Cache = C:\Users\graha\.fhir\packages
  Params: C:\temp\validator\testbundle.json -version 1.0.2
Loading
  Load FHIR v1.0 from hl7.fhir.r2.core#1.0.2 - 3378 resources (00:03.0256)
  Load hl7.terminology#2.1.0 - 3767 resources (00:00.0765)
  Terminology server http://tx.fhir.org - Version 1.9.372 (00:02.0466)
  Get set...  go (00:00.0760)
Validating
  Validate C:\temp\validator\testbundle.json  Load hl7.fhir.r2.core#1.0.2 - 0 resources (00:01.0159)
 00:01.0748
Done. Times: Loading: 00:07.0513, validation: 00:02.0907. Memory = 236Mb

*FAILURE*: 2 errors, 2 warnings, 6 notes
  Error @ Bundle.entry[2].resource.ofType(Practitioner).identifier[0] (line 230, col18) : Identifier.system must be an absolute reference, not a local reference
  Error @ Bundle.entry[0].resource.ofType(Patient).extension[3].url (line 42, col86) : URL value 'http://hl7.org/fhir/StructureDefinition/us-core-birth-sex' does not resolve
  Information @ Bundle.entry[0].resource.ofType(Patient).extension[3] (line 41, col18) : Unknown extension http://hl7.org/fhir/StructureDefinition/us-core-birth-sex
  Information @ Bundle.entry[3].resource.ofType(Condition).patient (line 310, col15) : Details for urn:uuid:cc7e7170-5f3b-4f71-9960-20c189faq001 matching against Profilehttp://hl7.org/fhir/StructureDefinition/Patient
  Information @ Bundle.entry[1].resource.ofType(Practitioner).practitionerRole[0].specialty[0].coding[0] (line 195, col30) : Code System URI 'urn:oid:1.2.345.6789.1011.1234567.81' is unknown so the code cannot be validated
  Information @ Bundle.entry[1].resource.ofType(Practitioner).practitionerRole[1].role.coding[0] (line 208, col27) : Code System URI 'urn:oid:1.2.345.6789.1011.1234567.81' is unknown so the code cannot be validated
  Information @ Bundle.entry[2].resource.ofType(Practitioner).practitionerRole[0].specialty[0].coding[0] (line 274, col30) : Code System URI 'urn:oid:1.2.345.6789.1011.1234567.81' is unknown so the code cannot be validated
  Information @ Bundle.entry[2].resource.ofType(Practitioner).practitionerRole[1].role.coding[0] (line 287, col27) : Code System URI 'urn:oid:1.2.345.6789.1011.1234567.81' is unknown so the code cannot be validated
  Warning @ Bundle.entry[0].resource.ofType(Patient).communication[0].language (line 109, col33) : ValueSet http://tools.ietf.org/html/bcp47 not found by validator
  Warning @ Bundle.entry[3].resource.ofType(Condition).code.coding[0] (line 318, col21) : The display "Hypertension" is not a valid display for the code {http://snomed.info/sct}59621000 - should be one of ["Essential hypertension","Idiopathic hypertension","Systemic primary arterial hypertension","Primary hypertension","Essential hypertension (disorder)"] (from http://tx.fhir.org/r2) for 'http://snomed.info/sct#59621000'

view this post on Zulip Grahame Grieve (Jun 03 2021 at 00:30):

that looks right to me

view this post on Zulip Abigail Huang (Jun 03 2021 at 02:44):

Thanks for trying the bundle out @Grahame Grieve ! You're right. That seems correct. I wonder why when I run the same command it says "Validate testbundle.json Load hl7.fhir.r5.core#current" while yours correctly loads hl7.fhir.r2.core#1.0.2. Did you separately download the validation schema for DSTU2? Thanks so much!

view this post on Zulip Grahame Grieve (Jun 03 2021 at 04:13):

it shouldn't matter, but I didn't download anything and it shouldn't matter, really. I can't imagine why that's appearing.

view this post on Zulip Abigail Huang (Jun 03 2021 at 18:40):

Hmm. the only difference I see is the fhir validation tool version based on the output. Is there any place where we can download the older version 5.3.12? @Grahame Grieve Do you by chance still have a copy of the older version you are using? I wonder if that would help.

view this post on Zulip Vassil Peytchev (Jun 03 2021 at 19:45):

All github releases are at https://github.com/hapifhir/org.hl7.fhir.core/releases/

view this post on Zulip Abigail Huang (Jun 03 2021 at 21:48):

Thanks so much @Vassil Peytchev for pointing me to the repository of old releases. Unfortunately, I tried v5.3.12 but bizarrely it still seems to load hl7.fhir.r5.core. Hmmm. I guess the problem is not the version then.

Either way, I really appreciate everyone's help/thoughts!

abigailhuang-macbookpro2:downloads abigailhuang$ java -jar validator_cliold.jar testbundle.json -version 1.0.2
FHIR Validation tool Version 5.3.12 (Git# a20d84bf2b87). Built 2021-05-13T19:12:53.818Z (21 days old)
  Java:   16.0.1 from /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home on x86_64 (64bit). 8192MB available
  Paths:  Current = /Users/abigailhuang/Downloads, Package Cache = /Users/abigailhuang/.fhir/packages
  Params: testbundle.json -version 1.0.2
Loading
  Load FHIR v1.0 from hl7.fhir.r2.core#1.0.2 - 3378 resources (00:05.0211)
  Load hl7.terminology#2.1.0 - 3767 resources (00:01.0371)
  Terminology server http://tx.fhir.org - Version 1.9.372 (00:02.0300)
  Get set...  go (00:00.0815)
Validating
  Validate testbundle.json  Load hl7.fhir.r5.core#current - 1990 resources (00:01.0286)
 00:08.0933
Done. Times: Loading: 00:10.0080, validation: 00:10.0220. Memory = 448Mb

*FAILURE*: 14 errors, 2 warnings, 3 notes
  Error @ Bundle.entry[1].resource.ofType(Practitioner).practitionerRole[0] (line 191, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[1].resource.ofType(Practitioner).practitionerRole[1] (line 205, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[2].resource.ofType(Practitioner).practitionerRole[0] (line 270, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[2].resource.ofType(Practitioner).practitionerRole[1] (line 284, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[3].resource.ofType(Condition).patient (line 310, col15) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Condition
  Error @ Bundle.entry[3].resource.ofType(Condition).dateRecorded (line 315, col42) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Condition

view this post on Zulip Abigail Huang (Jun 03 2021 at 21:56):

In comparison, when I test a single resource using the same command it doesn't load r5.core

abigailhuang-macbookpro2:downloads abigailhuang$ java -jar validator_cliold.jar testresource.json -version 1.0.2
FHIR Validation tool Version 5.3.12 (Git# a20d84bf2b87). Built 2021-05-13T19:12:53.818Z (21 days old)
  Java:   16.0.1 from /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home on x86_64 (64bit). 8192MB available
  Paths:  Current = /Users/abigailhuang/Downloads, Package Cache = /Users/abigailhuang/.fhir/packages
  Params: testresource.json -version 1.0.2
Loading
  Load FHIR v1.0 from hl7.fhir.r2.core#1.0.2 - 3378 resources (00:04.0479)
  Load hl7.terminology#2.1.0 - 3767 resources (00:01.0149)
  Terminology server http://tx.fhir.org - Version 1.9.372 (00:01.0962)
  Get set...  go (00:00.0847)
Validating
  Validate testresource.json 00:00.0480
Done. Times: Loading: 00:08.0706, validation: 00:00.0481. Memory = 190Mb

Success: 0 errors, 0 warnings, 2 notes
  Information @ Practitioner.practitionerRole[0].specialty[0].coding[0] (line 68, col21) : Code System URI 'urn:oid:1.2.345.6789.1011.1234567.81' is unknown so the code cannot be validated
  Information @ Practitioner.practitionerRole[1].role.coding[0] (line 81, col18) : Code System URI 'urn:oid:1.2.345.6789.1011.1234567.81' is unknown so the code cannot be validated
abigailhuang-macbookpro2:downloads abigailhuang$

view this post on Zulip Grahame Grieve (Jun 03 2021 at 22:08):

@Mark Iantorno I cannot reproduce this. can you?

view this post on Zulip Abigail Huang (Jun 04 2021 at 00:43):

Hmm. Since no one else can reproduce this, it's probably just on my local machine. I did find some old hl7.fhir.r5.core.tgz files on my computer so I wonder if the issue is that I had previously installed something that is causing the validator to use r5 over r2. I'll do more digging on my end. Thanks so much all! Greatly appreciate your help.

view this post on Zulip Grahame Grieve (Jun 04 2021 at 03:54):

well, I don't know, it's not going to randomly load r5 because you have it. It's loading it for a reason. Tell you what, can you clear out your package cache, which is /Users/abigailhuang/.fhir/packages, and also /Users/abigailhuang/.fhir/package-client, and try again?

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:20):

Trying now. Sorry was caught up fixing something yesterday

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:24):

When I run the latest validator 5.4.2

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:25):

For the testbundle.json I get this:

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:25):

mark@egghead:~/Downloads/temp$ java -jar validator_cli.jar testbundle.json -version 1.0.2
FHIR Validation tool Version 5.4.2 (Git# 552ef55adaf0). Built 2021-05-21T18:15:07.271Z (13 days old)
  Java:   11.0.9.1 from /home/mark/.sdkman/candidates/java/11.0.9.open-adpt on amd64 (64bit). 8028MB available
  Paths:  Current = /home/mark/Downloads/temp, Package Cache = /home/mark/.fhir/packages
  Params: testbundle.json -version 1.0.2
Loading
  Load FHIR v1.0 from hl7.fhir.r2.core#1.0.2 - 3378 resources (00:06.0998)
Installing hl7.terminology#2.1.0 to the package cache
  Fetching:............................................................................
  Installing: ............................................................................ done.
  Load hl7.terminology#2.1.0 - 3767 resources (00:04.0457)
  Terminology server http://tx.fhir.org - Version 1.9.372 (00:06.0345)
  Get set...  go (00:00.0490)
Validating
  Validate testbundle.json  Load hl7.fhir.r3.core#3.0.2 - 4017 resources (00:01.0126)
 00:02.0603
Done. Times: Loading: 00:18.0901, validation: 00:03.0729. Memory = 427Mb

*FAILURE*: 12 errors, 2 warnings, 2 notes
  Error @ Bundle.entry[1].resource.ofType(Practitioner).practitionerRole[0] (line 191, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[1].resource.ofType(Practitioner).practitionerRole[1] (line 205, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[2].resource.ofType(Practitioner).practitionerRole[0] (line 270, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[2].resource.ofType(Practitioner).practitionerRole[1] (line 284, col18) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Practitioner
  Error @ Bundle.entry[3].resource.ofType(Condition).patient (line 310, col15) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Condition
  Error @ Bundle.entry[3].resource.ofType(Condition).dateRecorded (line 315, col42) : This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/Condition
  Error @ Bundle.entry[2].resource.ofType(Practitioner).identifier[0] (line 230, col18) : Identifier.system must be an absolute reference, not a local reference
  Error @ Bundle.entry[3].resource.ofType(Condition).category.coding[0] (line 328, col21) : Unknown Code http://hl7.org/fhir/condition-category#diagnosis in http://hl7.org/fhir/condition-category for 'http://hl7.org/fhir/condition-category#diagnosis'
  Error @ Bundle.entry[0].resource.ofType(Patient).extension[3].url (line 42, col86) : URL value 'http://hl7.org/fhir/StructureDefinition/us-core-birth-sex' does not resolve
  Error @ Bundle.entry[3].resource.ofType(Condition).category (line 327, col27) : As specified by profile http://hl7.org/fhir/StructureDefinition/Condition, Element 'category' is out of order
  Error @ Bundle.entry[3].resource.ofType(Condition).clinicalStatus (line 334, col40) : As specified by profile http://hl7.org/fhir/StructureDefinition/Condition, Element 'clinicalStatus' is out of order
  Error @ Bundle.entry[3].resource.ofType(Condition) (line 326, col26) : Condition.subject: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/Condition)
  Information @ Bundle.entry[0].resource.ofType(Patient).extension[3] (line 41, col18) : Unknown extension http://hl7.org/fhir/StructureDefinition/us-core-birth-sex
  Information @ Bundle.entry[3].resource.ofType(Condition).asserter (line 312, col48) : Details for urn:uuid:cc7e7170-5f3b-4f71-9960-20c189faq002 matching against Profilehttp://hl7.org/fhir/StructureDefinition/Practitioner
  Warning @ Bundle.entry[0].resource.ofType(Patient).communication[0].language (line 109, col33) : ValueSet http://tools.ietf.org/html/bcp47 not found by validator
  Warning @ Bundle.entry[3].resource.ofType(Condition).code.coding[0] (line 318, col21) : The display "Hypertension" is not a valid display for the code {http://snomed.info/sct}59621000 - should be one of ["Essential hypertension","Idiopathic hypertension","Systemic primary arterial hypertension","Primary hypertension","Essential hypertension (disorder)"] (from http://tx.fhir.org/r2) for 'http://snomed.info/sct#59621000'

view this post on Zulip Grahame Grieve (Jun 04 2021 at 13:26):

why on earth does Load hl7.fhir.r3.core#3.0.2 appear? can you debug that? It totally shouldn't happen, and doesn't for me

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:26):

yeah looking into it

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:26):

just for level setting purposes, when I run the testresource on it's own I get:

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:27):

mark@egghead:~/Downloads/temp$ java -jar validator_cli.jar testresource.json -version 1.0.2
FHIR Validation tool Version 5.4.2 (Git# 552ef55adaf0). Built 2021-05-21T18:15:07.271Z (13 days old)
  Java:   11.0.9.1 from /home/mark/.sdkman/candidates/java/11.0.9.open-adpt on amd64 (64bit). 8028MB available
  Paths:  Current = /home/mark/Downloads/temp, Package Cache = /home/mark/.fhir/packages
  Params: testresource.json -version 1.0.2
Loading
  Load FHIR v1.0 from hl7.fhir.r2.core#1.0.2 - 3378 resources (00:02.0583)
  Load hl7.terminology#2.1.0 - 3767 resources (00:00.0736)
  Terminology server http://tx.fhir.org - Version 1.9.372 (00:03.0105)
  Get set...  go (00:00.0497)
Validating
  Validate testresource.json 00:00.0332
Done. Times: Loading: 00:07.0140, validation: 00:00.0332. Memory = 248Mb

Success: 0 errors, 0 warnings, 2 notes
  Information @ Practitioner.practitionerRole[0].specialty[0].coding[0] (line 68, col21) : Code System URI 'urn:oid:1.2.345.6789.1011.1234567.81' is unknown so the code cannot be validated
  Information @ Practitioner.practitionerRole[1].role.coding[0] (line 81, col18) : Code System URI 'urn:oid:1.2.345.6789.1011.1234567.81' is unknown so the code cannot be validated

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:27):

So no errors there.

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:27):

This is my priority this morning

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:32):

..ah master branch is pooched

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:32):

won't build

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:33):

I need to figure out how that happened first

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:36):

this PR here is making so master won't build?

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:36):

https://github.com/hapifhir/org.hl7.fhir.core/pull/530

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:44):

I lied, it's this one here: https://github.com/hapifhir/org.hl7.fhir.core/pull/528

view this post on Zulip Grahame Grieve (Jun 04 2021 at 13:49):

new pr is fixing it

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:57):

ok

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:58):

the pr fixed that problem, but there is a test failure

view this post on Zulip Mark Iantorno (Jun 04 2021 at 13:58):

[ERROR] Run 68: Test dr-example-org: Expected 0 errors, but found 1. expected:<0> but was:<1>

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:07):

whoops I forgot to commit to test-cases

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:08):

done

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:20):

We're getting a FHIRPath test failure now?

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:20):

[ERROR] Run 339: FHIRPathTests.test:209 Unexpected exception executing '???'.matches('?+'): Dangling meta character '?' near index 4
(?s)?+
^ ==> expected: <true> but was: <false>

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:24):

I'm looking at it

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:31):

it doesn't fail for me in eclipse

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:33):

Are there any changes not committed to the test cases library

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:34):

no. i

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:34):

You load all three repos as one continuous dependency in Eclipse, so it won't run the same as when the pipeline or I run it. This looks like there might be an uncommitted change somewhere

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:35):

When you run it on the command line, can you replicate the same fail that the pipeline gets?

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:35):

or does it pass locally?

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:35):

it fails the same way in maven.

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:35):

okay, so, there's a delta somewhere we need to find

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:36):

did the snapshot for test cases fail to deploy?

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:36):

looking at that right now

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:36):

because that's the big difference between running in maven and running in eclipse

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:38):

and I don't know how to investigate because '338' fails. What test is that? How is anyone supposed to understand maven?

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:38):

339

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:38):

Fhir test cases published successfully at 10:09am this morning for me. https://dev.azure.com/fhir-pipelines/fhir-test-cases/_build/results?buildId=3528&view=results. So the test case upload seems to be there.

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:39):

oh. no. That's a character set issue

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:39):

    <test name="testMatchesUnicodeCharacters"><expression>'🔥🔥🔥'.matches('🔥+')</expression><output type="boolean">true</output></test>

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:39):

Is this related the the file format changes for the properties files for localization

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:39):

it runs fine in eclipse, but check the error message:

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:40):

Unexpected exception executing '???'.matches('?+'): Dangling meta character '?' near index 4
(?s)?+
    ^ ==> expected: <true> but was: <false>

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:40):

that's going to be a maven / java / deefault charset issue

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:40):

and no, not related to them

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:41):

I say we disable that test for now

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:41):

Is this a new test case?

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:41):

I'm fine with that

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:41):

Are you going to push the PR?

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:41):

yes https://github.com/FHIR/fhir-test-cases/pull/89

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:42):

I'll push it, and we'll come back to it

view this post on Zulip Grahame Grieve (Jun 04 2021 at 14:42):

ok pushed

view this post on Zulip Mark Iantorno (Jun 04 2021 at 14:43):

kk I'll make a coffee and re-run the PR branch for core once the test cases publish

view this post on Zulip Abigail Huang (Jun 09 2021 at 10:15):

@Mark Iantorno @Grahame Grieve Just wanted to followup and say that I downloaded the newest version of the validator. The same issue with using r5 for validation occurred initially on my mac (I didn't see this issue on my Windows). I then cleared the package cache on Mac and since then have not had any problems. I've been able to validate my DSTU2 bundles now. Thank you so much for all your help with this!! It is most appreciated.


Last updated: Apr 12 2022 at 19:14 UTC