FHIR Chat · FHIR Validation for Organization · hapi

Stream: hapi

Topic: FHIR Validation for Organization


view this post on Zulip Fei Yan (Nov 08 2019 at 21:09):

Hi all,

I am using HAPI-FHIR JPA server starter 4.0.1 for resource validation. When I tried with one Organization resource I got an error:
{
"severity": "error",
"code": "processing",
"diagnostics": "Unknown type http://hl7.org/fhirpath/System.String",
"location": [
"Parameters.parameter[0].resource.id"
]
}

Below is the resource I am using:
{
"resourceType": "Organization",
"id": "14705",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-07T15:29:50.000-06:00",
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization"
]
},
"text": {
"status": "generated",
"div": "..."
},
"identifier": [
{
"system": "urn:oid:123.456..7",
"value": "abcde"
},
{
"system": "http://www....",
"value": "12345"
}
],
"active": true,
"name": "...",
"telecom": [
{
"system": "phone",
"value": "..."
},
{
"system": "url",
"value": "..."
},
{
"system": "email",
"value": "..."
}
],
"address": [
{
"line": [
"..."
],
"city": "...",
"state": "...",
"postalCode": "...",
"country": "USA"
}
],
"partOf": {
"reference": "Organization/14706"
}
}

Is this because of the profile I am using? Any help is appreciated. Thanks in advance.

Fei

view this post on Zulip Grahame Grieve (Nov 08 2019 at 21:10):

please describe how exactly you reproduced that error. It looks suspiciously like an error from a different server I just fixed

view this post on Zulip Fei Yan (Nov 08 2019 at 21:18):

@Grahame Grieve I used the UI tool of JPA server starter for validating my resources. It is in the CRUD Operations -> Validate. If more info is needed please let me know. Thank you.

view this post on Zulip Grahame Grieve (Nov 08 2019 at 21:19):

@James Agnew I don't know how this works, but this looks a like an erroneous error in test.fhir.org that I just fixed but haven't yet deployed

view this post on Zulip Fei Yan (Dec 05 2019 at 18:35):

@Grahame Grieve Kindly reminder - is there any update for this issue?

view this post on Zulip Grahame Grieve (Dec 05 2019 at 18:37):

well, I deployed it - is it still happenng?

view this post on Zulip Fei Yan (Dec 05 2019 at 19:56):

This error "Unknown type http://hl7.org/fhirpath/System.String" has gone in 4.1.0, thank you

view this post on Zulip Fei Yan (Dec 05 2019 at 21:00):

(deleted)

view this post on Zulip Fei Yan (Dec 06 2019 at 16:16):

@Grahame Grieve I saw some new validation errors which shows in HAPI-FHIR 4.1.0 but not 4.0.1:
{
"severity": "error",
"code": "processing",
"diagnostics": "The value provided ('generated') is not in the value set http://hl7.org/fhir/ValueSet/narrative-status|4.0.0 (http://hl7.org/fhir/ValueSet/narrative-status, and a code is required from this value set) (error message = Unknown code[generated] in system[(none)])",
"location": [
"Parameters.parameter[0].resource.text.status",
"Line 17, Col 33"
]
},
{
"severity": "error",
"code": "processing",
"diagnostics": "The value provided ('phone') is not in the value set http://hl7.org/fhir/ValueSet/contact-point-system|4.0.0 (http://hl7.org/fhir/ValueSet/contact-point-system, and a code is required from this value set) (error message = Unknown code[phone] in system[(none)])",
"location": [
"Parameters.parameter[0].resource.telecom[0].system",
"Line 34, Col 31"
]
},
{
"severity": "error",
"code": "processing",
"diagnostics": "The value provided ('url') is not in the value set http://hl7.org/fhir/ValueSet/contact-point-system|4.0.0 (http://hl7.org/fhir/ValueSet/contact-point-system, and a code is required from this value set) (error message = Unknown code[url] in system[(none)])",
"location": [
"Parameters.parameter[0].resource.telecom[2].system",
"Line 42, Col 29"
]
}

view this post on Zulip Grahame Grieve (Dec 06 2019 at 18:10):

do they happen with the standalone validator, or only in HAPI?

view this post on Zulip Fei Yan (Dec 06 2019 at 19:11):

I am not sure about the standalone validator. I validated through the HAPI JPA server UI


Last updated: Apr 12 2022 at 19:14 UTC