Online FHIR validator error

Hi team,

I was using the online FHIR resource validator sometime back and it was working fine. But now, it is throwing exception while trying to validate a FHIR resource.

Here is the error :crazy_face:

(00000000007FA4B8){FHIRServer.exe} [0000000000BFB4B8] Unknown function at TMethodImplementationIntercept + $752E48 (0000000005AE1BAC){FHIRServer.exe} [0000000005EE2BAC] Unknown function at TMethodImplementationIntercept + $5A3A53C (0000000005AE3AE0){FHIRServer.exe} [0000000005EE4AE0] Unknown function at TMethodImplementationIntercept + $5A3C470 (000000000004B717){FHIRServer.exe} [000000000044C717] Unknown function at __dbk_fcall_wrapper + $2E157 (000000000004C00B){FHIRServer.exe} [000000000044D00B] Unknown function at __dbk_fcall_wrapper + $2EA4B (00000000000115D6){FHIRServer.exe} [00000000004125D6] (0000000000011611){FHIRServer.exe} [0000000000412611] (00000000007FA4B8){FHIRServer.exe} [0000000000BFB4B8] Unknown function at TMethodImplementationIntercept + $752E48 (00000000058DD6D0){FHIRServer.exe} [0000000005CDE6D0] Unknown function at TMethodImplementationIntercept + $5836060 (00000000058D6483){FHIRServer.exe} [0000000005CD7483] Unknown function at TMethodImplementationIntercept + $582EE13 (00000000058D2F0A){FHIRServer.exe} [0000000005CD3F0A] Unknown function at TMethodImplementationIntercept + $582B89A (00000000058F6F39){FHIRServer.exe} [0000000005CF7F39] Unknown function at TMethodImplementationIntercept + $584F8C9 (00000000006EDAE9){FHIRServer.exe} [0000000000AEEAE9] Unknown function at TMethodImplementationIntercept + $646479 (00000000006EF46A){FHIRServer.exe} [0000000000AF046A] Unknown function at TMethodImplementationIntercept + $647DFA (0000000000456C99){FHIRServer.exe} [0000000000857C99] Unknown function at TMethodImplementationIntercept + $3AF629 (0000000000454CAA){FHIRServer.exe} [0000000000855CAA] Unknown function at TMethodImplementationIntercept + $3AD63A (000000000045994B){FHIRServer.exe} [000000000085A94B] Unknown function at TMethodImplementationIntercept + $3B22DB (0000000000458AEB){FHIRServer.exe} [0000000000859AEB] Unknown function at TMethodImplementationIntercept + $3B147B (0000000000139683){FHIRServer.exe} [000000000053A683] Unknown function at TMethodImplementationIntercept + $92013 (000000000001219D){FHIRServer.exe} [000000000041319D] (00000000000074D4){KERNEL32.DLL} [00007FFF492484D4] BaseThreadInitThunk + $14 (000000000006D871){ntdll.dll } [00007FFF495BE871] RtlUserThreadStart + $21
No module could be found to handle the request “undefined” .

Any leads would be appreciated

Hi Aman,

Can you please the resource that you were trying to validate? and the online validator that you are referring to?

I was trying to validate the bundle resource that I created.

http://clinfhir.com/validateResource.html
Above is the validator resource that I was trying to validate.

Resource :

{"resource": {"telecom": [{"use": "home", "system": "phone", "value": "9760728970"}], "text": {"status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"> <p><b>Narrative:</b></p> <p><b>Patient Name: Aman Verma , Age: 25 year(s), Gender: Male</b></p> </div>"}, "birthDate": "<dob>", "meta": {"profile": ["https://nrces.in/ndhm/fhir/r4/StructureDefinition-Patient.html"], "versionId": "1", "lastUpdated": "2020-10-01T17:23:29+05:30"}, "address": [{"city": "Kota", "use": "home", "text": "Address String ", "state": "Rajasthan", "postalCode": "560102", "line": [" Benagluru 560102", " India"], "type": "both"}], "active": true, "id": "1234", "name": [{"text": "Aman Verma"}], "resourceType": "Patient", "gender": "male", "identifier": [{"type": {"coding": [{"code": "MR", "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "display": "Medical record number"}]}, "system": "https://healthid.ndhm.gov.in", "value": "<some value>"}]}, "fullUrl": "Patient/1234"}

I even tried to validate the resource from https://nrces.in/ndhm/fhir/r4/Patient-example-01.json.html but the same error pops up.

Hi Aman,

If your are validating a bundle then the resource type and information should come as:
{
“resourceType”: “Bundle”,
“id”: “101”,
“type”: “collection”,
“entry”: [
{
“fullUrl”: “”,
“resource”: {
// Patient resource or any other resource json will be populated here.
}
}
}

In your example, I presume that you are trying to validate a patient resource.
There are few errors in the example, important one is the profile URL should be the profile canonical URL

The corrected version of the same example is shared in the subsequent post.

  1. We have tried the FHIR validator (http://hl7.org/fhir/validator/) using following command:

     java -jar validator_cli.jar "path of resource to validate" -version 4.0.1  -ig https://nrces.in/ndhm/fhir/r4
    

here, -ig https://nrces.in/ndhm/fhir/r4 tells the validator to validate the resource against the profiles in Implementation Guide.

The clinfhir validator is trying to locate profiles at canonical URL which are currently not available at that path. Noted this requirement and we will try to resolve this. Though we have not tried, but ig parameter should work with clinfhir validator as well.

Hope this is helpful.

2 Likes

Restructured Patient Resource

{
“resourceType”: “Patient”,
“meta”: {
“profile”: [
“https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient”
],
“versionId”: “1”,
“lastUpdated”: “2020-10-01T17:23:29+05:30”
},
“text”: {
“status”: “generated”,
“div”: "<div xmlns=“http://www.w3.org/1999/xhtml”>

Narrative:

Patient Name: Aman Verma , Age: 25 year(s), Gender: Male

"
},
“birthDate”: “1981-01-12”,
"telecom": [
	{
		"use": "home",
		"system": "phone",
		"value": "9760728970"
	}
],
"address": [
	{
		"city": "Kota",
		"use": "home",
		"text": "Address String",
		"state": "Rajasthan",
		"postalCode": "560102",
		"line": [
			"Benagluru 560102",
			"India"
		],
		"type": "both"
	}
],
"active": true,
"id": "1234",
"name": [
	{
		"text": "Aman Verma"
	}
],
"gender": "male",
"identifier": [
	{
		"type": {
			"coding": [
				{
					"code": "MR",
					"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
					"display": "Medical record number"
				}
			]
		},
		"system": "https://healthid.ndhm.gov.in",
		"value": "22-7225-4829-5255"
	}
]}