inferno-framework / fhir-validator-app Goto Github PK
View Code? Open in Web Editor NEWA standalone app for validating FHIR resources against an optional Implementation Guide
License: Apache License 2.0
A standalone app for validating FHIR resources against an optional Implementation Guide
License: Apache License 2.0
I am seeing the below issue for CarePlan Resource when we try to validate from FHIR validator
Fhir validator tool used: http://inferno.healthit.gov/validator
Version : 1.0.0
Implementation Guide selected from drop down = hl7.fhir.us.core
Profile selected from drop down = http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan
Validation Error message:
Bundle.entry[0].resource.addresses[0]: Unrecognised property '@display' on line 102. Jump to error.
Bundle.entry[0].resource.addresses[0].reference: This property must be an Object, not a primitive property on line 104. Jump to error.
Below is the payload or json response snippet for address data element:
"addresses": [
{
"display": "Member may not be receiving appropriate diagnostic testing/monitoring as it relates to gestational diabetes requiring additional care coordination/education",
"reference": "Condition/3008838388"
}
]
Thanks
I wanted to bring this up as a discussion point. I have a number of items in a Questionnaire that look like this:
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
"valueCode": "horizontal"
}
],
"linkId": "/Arlington-consent/share/all",
"text": "All of the Below",
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
"valueString": "<b>All of the Below</b>"
}
]
},
"type": "choice",
"answerValueSet": "https://healthcare.googleapis.com/v1/projects/demos-322021/locations/us-central1/datasets/mayjuun/fhirStores/dev/fhir/ValueSet/hl7-yes-no-vs"
},
But then on validation I receive this Validation Information:
Questionnaire.item[4].item[0].text.extension[0].value.ofType(string): The string value contains text that looks like embedded HTML tags. If this content is rendered to HTML without appropriate post-processing, it may be a security risk on line 61.
This is generally a fair note. However, in the above case I have specifically pointed out that this is indeed html using the Extension, so is it necessary to continue to print that as part of the Validation Information when I have already made note of it in the resource itself? The answer may still be yes, it was just an item I wanted to bring attention to.
Hi, firstly thank you for this validator, its really helpful!
I have a question regarding Loinc code validations.
It seems that something has changed recently and I am getting this error on the same FHIR that was ok few days ago.
Just wanted to confirm that it isn't an issue on the side of the validator. From my view it looks like the validator cannot validate the code for some reason?
Bundle.entry[5].resource.ofType(Observation).code.coding[0]: Error performing operation 'validate-code' with parameters for 'http://loinc.org#72831-1' on line 165. Jump to error.
"code":{
"coding":[
{
"system":"http://loinc.org",
"code":"72831-1",
"display":"US.doppler Extremity arteries - bilateral for physiologic artery study limited"
}
]
},
Thank you, Regards
"system": "http://snomed.info/sct", "version": "http://snomed.info/sct/731000124108/version/20220301", "filter": [ { "property": "concept", "op": "=", "value": "768734005" } ]
However it is reported by the validator as invalid
CareTeam.participant[2].role[0]: Error from server: The filter "concept = 768734005" from the value set http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1099.27 was not understood in the context of http://snomed.info/sct
That is the first error.
After experiencing that error, I switch to a different SCT code in the same file, but got the same error for code 768734005. After that, i started a new Safari tab to retest and got the same result. Then i started Google Chrome and tested there, using only the default us core care team example without changing the role sct code. That validation gives the same error four times for code 7687... even though i am not using that code in the file being validated.
Please explain why https://inferno.healthit.gov/validator/ reports the following error for the attached Provenance resource.
Advanced Options
Pick an Implementation Guide to validate against = hl7.fhir.us.core
Select a profile = http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance
Problem processing expression ($this.agent.who.resolve().is Practitioner or Device) implies exists() in profile http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance path Provenance.agent[0].onBehalfOf: Error @1, 2: Found Practitioner expecting a ")" on line 1.
Sample_Provenance_for_Condition.txt
This Provenance resource has agent[0].who reference to Practitioner and agent[0].onBehalfOf reference to Organization. Why does inferno online validator report an error with this content?
A test issue, to test whether the Slack integration works.
Bundle.entry[0].resource: Unrecognised property '@medicationCodeableConcept' on line 21. Jump to error.
Bundle.entry[0].resource: MedicationRequest.medication[x]: minimum required = 1, but only found 0 (from http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest) on line 39. Jump to error.
FHIR validator version : v 1.0.0
FHIR implementation guide selected: hl7.fhir.us.core
FHIR profile selected : http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
snippet of json response:
"medicationCodeableConcept": {
"coding": [
{
"code": "44",
"display": "Mesna",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm"
}
],
"text": "Mesna"
}
Thanks
The "Pick an Implementation Guide to validate against" option under Advanced Options is not loading making it impossible to pick a profile.
{"0": {"resourceType": "Patient", "id": "23b57", "gender": "male", "birthDate": "1981-10", "deceasedBoolean": false, "deceasedDateTime": null}, "1": {"resourceType": "Patient", "id": "2ee0b", "gender": "male", "birthDate": "1989-01", "deceasedBoolean": true, "deceasedDateTime": "2020-10-25"}, "2": {"resourceType": "Patient", "id": "5a9acf", "gender": "female", "birthDate": "1997-07", "deceasedBoolean": true, "deceasedDateTime": "2021-01-05"}, "3": {"resourceType": "Patient", "id": "53696e", "gender": "female", "birthDate": "1998-07", "deceasedBoolean": false, "deceasedDateTime": null}, "4": {"resourceType": "Patient", "id": "994cb", "gender": "female", "birthDate": "1966-03", "deceasedBoolean": true, "deceasedDateTime": "2021-02-05"}}
Is there a known issue with the public validation tool?
Every time I attempt to validate a resource I get an error message stating "Failed to validate resource Gateway Time-out".
I have used the validation tool many times in the past without issue.
Validating against hl7.fhir.us.core and us-core-patient profile.
Getting:
Patient.extension[1].extension[0].value.ofType(Coding): The Coding provided (urn:oid:2.16.840.1.113883.6.238#2186-5) is not in the value set http://hl7.org/fhir/us/core/ValueSet/omb-ethnicity-category, and a code is required from this value set. (error message = Not in value set http://hl7.org/fhir/us/core/ValueSet/omb-ethnicity-category) on line 218. Jump to error.
for:
{
"url" : "ombCategory",
"valueCoding" : {
"system" : "urn:oid:2.16.840.1.113883.6.238",
"code" : "2186-5",
"display" : "Not Hispanic or Latino"
}
}
2186-5 is the code for Not Hispanic or Latino, and should be valid. The exact same code is passing US Core 3.1.1 Patient 2.10 test in Inferno Validation.
Just thought I would try the tool using a custom profile but the error Failed to upload profile: Gateway Time-out
. To reproduce:
Used the following FSH:
Profile: NamedPatient
Parent: Patient
* name 1..1
Instance: JaneDoe
InstanceOf: NamedPatient
//* name.family = "Doe"
//* name.given = "Jane"
Converted it using FSHOnline and then pasted the Profile in the Load standalone profile
tab.
json excerpt:
"safety" : [ { "coding" : [ { "code" : "C113844", "display" : "Labeling does not contain MRI Safety Information", "system" : "https://ncithesaurus-stage.nci.nih.gov/ncitbrowser/" } ],
error message:
Bundle.entry[0].resource.safety[0].coding[0]: Code System URI 'https://ncithesaurus-stage.nci.nih.gov/ncitbrowser/' is unknown so the code cannot be validated
Validator Settings:
IG: hl7.fhir.r4.core
Profile: http://hl7.org/fhir/StructureDefinition/Device
Spec links:
https://www.hl7.org/fhir/valueset-device-safety.html
https://terminology.hl7.org/3.1.0/ValueSet-v2-0963.html
system values tried:
urn:oid:2.16.840.1.113883.4.642.3.213
http://ncithesaurus-stage.nci.nih.gov
https://ncithesaurus-stage.nci.nih.gov/ncitbrowser/
I'd imagine the second one is the 'most correct' but all 3 result in the same error from the validator.
1.3.08 expects the scopes to have the same order.
standalone_requested_scopes = standalone_received_scopes but the order of the scopes is incorrect, it errors out.
standalone_requested_scopes | launch/patient openid fhirUser offline_access patient/Medication.read patient/AllergyIntolerance.read patient/CarePlan.read patient/CareTeam.read patient/Condition.read patient/Device.read patient/DiagnosticReport.read patient/DocumentReference.read patient/Encounter.read patient/Goal.read patient/Immunization.read patient/Location.read patient/MedicationRequest.read patient/Observation.read patient/Organization.read patient/Patient.read patient/Practitioner.read patient/Procedure.read patient/Provenance.read patient/PractitionerRole.read |
---|---|
standalone_received_scopes | launch/patient openid fhirUser patient/Medication.read patient/AllergyIntolerance.read patient/CarePlan.read patient/CareTeam.read patient/Condition.read patient/Device.read patient/DiagnosticReport.read patient/DocumentReference.read patient/Encounter.read patient/Goal.read patient/Immunization.read patient/Location.read patient/MedicationRequest.read patient/Observation.read patient/Organization.read patient/Patient.read patient/Practitioner.read patient/Procedure.read patient/Provenance.read patient/PractitionerRole.read offline_access |
Sporadically the gateway times out when trying to validate things.
We have started seeing the below validation error in inferno for the last few days
Unable to resolve value set "http://hl7.org/fhir/us/carin-bb/ValueSet/CDCICD910CMDiagnosisCodes|1.0.0
" (from http://tx.fhir.org/r4)
Also see similar error for a different codeset
Unable to resolve value set "http://hl7.org/fhir/us/core/ValueSet/us-core-provider-specialty|3.1.0" (from http://tx.fhir.org/r4)
for icd10, we had an issue with the codes being exposed and not in decimal format. we corrected that, but now seeing this error
We do not see this error in the other FHIR validators we use from our FHIR platform. Please let us know what this error means
We are trying to validate the Patient resource against fhir.us.uds-plus IG.
Getting
Patient.extension[4].value.ofType(CodeableConcept): None of the codings provided are in the value set 'Uds Plus Gender Identity Codes' (http://hl7.org/fhir/us/uds-plus/ValueSet/uds-plus-gender-identity-codes|1.0.0), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = http://terminology.hl7.org/CodeSystem/v3-NullFlavor#ASKU) on line 67
for
{ "valueCodeableConcept": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", "code": "ASKU", "display": "asked but unknown" } ] }, "url": "http://hl7.org/fhir/us/uds-plus/StructureDefinition/uds-plus-gender-identity-extension" }
As fhir.us.uds-plus IG is derived from US Core IG. And the NullFlavor code 'ASKU' is valid as per US CORE Profile extensions. We are expecting the warning shouldn't be shown.
Can you please let us know why it is being showed as a warning?
Validation tool is again in a state where I get a Gateway time-out message every time I attempt to validate a resource.
The tool did work briefly last Friday but was down again by Friday afternoon and remains down at this time.
Can someone please review?
Please explain:
Inferno is reporting the following error:
Provenance: Provenance.recorded: minimum required = 1, but only found 0 (from http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance)
Could not find Provenance.recorded in the 3 provided Provenance resource(s)
Why does inferno report an error with this content?
Testing with Json:
{ "entry" : [ { "fullUrl" : "https://www.medentmobiletest.com/fhir/R4/savcw235/Patient/MRN.5556.5e5adcf6-aa91-4dde-a5bb-67b2935bb18a", "resource" : { "id" : "MRN.5556.5e5adcf6-aa91-4dde-a5bb-67b2935bb18a", "resourceType" : "Patient" }, "search" : { "mode" : "match" } } ], "id" : "3946420210303T1452180Z", "link" : [ { "relation" : "self", "url" : "https://www.medentmobiletest.com/fhir/R4/savcw235/Patient?_id=MRN.5556.5e5adcf6-aa91-4dde-a5bb-67b2935bb18a" } ], "meta" : { "lastUpdated" : "2021-03-03T14:52:18.0Z" }, "resourceType" : "Bundle", "total" : 1, "type" : "searchset" }
Validator results:
Going to either URL directly will give an authentication error. Trying to understand what the validator is looking for here, thanks!
URL value 'http://hl7.org/fhir/us/davinci-deqm/StructureDefinition/extension-measureScoring' does not resolve. This is an existing url and is given per example http://hl7.org/fhir/us/davinci-deqm/STU3/MeasureReport-indv-measurereport01.json.html
The FHIR validator tool at https://inferno.healthit.gov/validator/ is consistently timing out this morning. It sits idle for about 45-60 seconds after clicking Validate, and then throws the error message.
Its been a few days and the advanced options IG packages are not loading. In addition, when running a validation on a resource instance that includes the profile structure definition in the meta or an extension, Inferno cannot resolve the definition or extension canonical URL. It validates against the base specification correctly though..
Patient.meta.profile[0]: Canonical URL 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient' does not resolve on line 6. Jump to error.
Patient.extension[0]: Unknown extension http://hl7.org/fhir/us/core/StructureDefinition/us-core-race on line 14. Jump to error.
Pick an Implementation Guide to validate against:
hl7.fhir.us.core
Profile:
Patient
Note: Same error is getting displayed for all profiles
Hi,
We are facing issues from past 3 to 4 days, not able to select the implementation guide from the drop down "Pick an implementation guide to validate against".
Below is the screenshot.
Requesting to provide the fix ASAP. Tool is very helpful in validating the resources during the testing window. So, provide the fix at the earliest.
Thanks in advance.
Selected Implementation guide - FL7.fhir.us.carin-bb
Profile: http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Professional-NonClinician is missed under the implementation
Last week we are able to see this profile in https://inferno.healthit.gov/validator/ but today we are unable to see C4BB related ExplanationOfBenefit-Professional-NonClinician.
Could you please fix this issue ASAP as we need to validate our responses for carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Professional-NonClinician
Hello,
Wanted to give a heads up that the hosted version of the fhir validator app at https://inferno.healthit.gov/validator seems to have a gateway time-out issue and unable to currently validate any resource. Thanks for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.