Giter Site home page Giter Site logo

inferno-framework / fhir-validator-app Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 12.0 1.64 MB

A standalone app for validating FHIR resources against an optional Implementation Guide

License: Apache License 2.0

HTML 4.05% JavaScript 4.16% Dockerfile 0.70% TypeScript 90.71% Shell 0.38%
fhir fhir-validator inferno

fhir-validator-app's People

Contributors

360dgries avatar alyssawang avatar arscan avatar bmath10 avatar dehall avatar dependabot[bot] avatar jammjammjamm avatar jason-crowley avatar ms-k1ngk0ng avatar radamson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fhir-validator-app's Issues

Bundle.entry[0].resource.addresses[0]: Unrecognised property '@display' is shown, need help on this to rectify

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

HTML Tags

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.

Loinc code validation issue

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

Validation error: CareTeam.participant.role not valid but role is valid and removing the role to retest, tool continues to report the deleted role code

ValidatorErrors-codeNotInFile

"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.

ValidatorErrors-code

US Core Provenance Validation Errors

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?

Test Issue

A test issue, to test whether the Slack integration works.

Medicationrequest profile validation from fhir validator tool is showing the errors, which may not be correct

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

Trying to use the web version and getting the error of JSON is missing "resourceType" field. I am providing the structure that I tried

{"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"}}

Gateway time-out

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.

Ethnicity Coding Error when it shouldn't be

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.

Failed to upload profile: Gateway Time-out

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.

Device > Safety > Coding > system url/oid not validating

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.

Inferno bug with US Core 5.0.1 / USCDI v2 App Launch 2.0.0 (1.3.08)

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

Gateway Time-out

Sporadically the gateway times out when trying to validate things.

Unable to resolve value set "http://hl7.org/fhir/us/carin-bb/ValueSet/CDCICD910CMDiagnosisCodes|1.0.0

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

Warning When Gender Identity Extension is validated

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?

Gateway Time-out (again)

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?

URL value does not resolve

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:

  1. Bundle.entry[0].fullUrl: URL value 'https://www.medentmobiletest.com/fhir/R4/savcw235/Patient/MRN.5556.5e5adcf6-aa91-4dde-a5bb-67b2935bb18a' does not resolve on line 6. Jump to error.
  2. Bundle.link[0].url: URL value 'https://www.medentmobiletest.com/fhir/R4/savcw235/Patient?_id=MRN.5556.5e5adcf6-aa91-4dde-a5bb-67b2935bb18a' does not resolve on line 24. Jump to error.

Going to either URL directly will give an authentication error. Trying to understand what the validator is looking for here, thanks!

Implementation guide package in Advanced Options is not loading

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.

Inferno fhir validator web app is not loading the implementation guide to select.

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.

inferno issue

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.

http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Professional-NonClinician StructureDefination is missing

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.