Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"-no-extensible-binding-warnings" not working properly #1679

Closed
sebastianhelbig opened this issue Jul 7, 2024 · 1 comment
Closed

"-no-extensible-binding-warnings" not working properly #1679

sebastianhelbig opened this issue Jul 7, 2024 · 1 comment

Comments

@sebastianhelbig
Copy link

As originally reported here: hapifhir/org.hl7.fhir.validator-wrapper#181

I am getting the warning code-invalid for an extensible binding although "-no-extensible-binding-warnings" is used.

java -jar validator_cli.jar Device_MIO_Bundle.xml -no-extensible-binding-warnings -recurse -verbose -version 4.0.1 -output validation.json
<Device xmlns="http://hl7.org/fhir">
   <id value="1"/>
   <meta>
      <versionId value="1.1.0"/>
      <lastUpdated value="2023-10-02T18:52:47.000+02:00"/>
      <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Device_DIGA|1.1.0"/>
   </meta>
   <identifier>
      <type>
         <text value="DiGA-VE-ID"/>
      </type>
      <value value="1"/>
   </identifier>
 </Device>
{
  "resourceType" : "OperationOutcome",
  "issue" : [
  …
  {
    "extension" : [{
      "url" : "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line",
      "valueInteger" : 9
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col",
      "valueInteger" : 14
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-source",
      "valueString" : "InstanceValidator"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/operationoutcome-message-id",
      "valueCode" : "Terminology_TX_Code_ValueSet_Ext"
    }],
    "severity" : "warning",
    "code" : "code-invalid",
    "details" : {
      "text" : "Kein Code gesetzt, und es sollte ein Code aus ValueSet'IdentifierType' (http://hl7.org/fhir/ValueSet/identifier-type|4.0.1) ({1}) gesetzt werden"
    },
    "expression" : ["Device.identifier[0].type"]
  }]
}
@sebastianhelbig
Copy link
Author

@grahamegrieve Thanks a lot for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant