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

Validation warning. Using Patient profile from IG #761

Open
botoxparty opened this issue Dec 1, 2024 · 1 comment
Open

Validation warning. Using Patient profile from IG #761

botoxparty opened this issue Dec 1, 2024 · 1 comment

Comments

@botoxparty
Copy link

Hey all,

I am trying to validate an example Patient record from the implementation guide i'm using (de.basisprofil-r4):
And this is the warning i always get:

{
			"extension": [
				{
					"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line",
					"valueInteger": 6
				},
				{
					"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col",
					"valueInteger": 14
				},
				{
					"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-message-id",
					"valueString": "Terminology_TX_NoValid_2_CC"
				}
			],
			"severity": "warning",
			"code": "processing",
			"details": {
				"coding": [
					{
						"system": "http://hl7.org/fhir/java-core-messageId",
						"code": "Terminology_TX_NoValid_2_CC"
					}
				]
			},
			"diagnostics": "None of the codings provided are in the value set 'IdentifierType' (http://hl7.org/fhir/ValueSet/identifier-type|4.0.1), 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://fhir.de/CodeSystem/identifier-type-de-basis#KVZ10)",
			"location": [
				"Patient.identifier[0].type",
				"Line[6] Col[14]"
			]
		},

I can lookup the Code in the CodeSystem in my server:

➜  ~ curl "http://localhost:8080/fhir/CodeSystem/\$lookup?system=http://fhir.de/CodeSystem/identifier-type-de-basis&code=KVZ10"

{
  "resourceType": "Parameters",
  "parameter": [ {
    "name": "name",
    "valueString": "IdentifierTypeDeBasis"
  }, {
    "name": "version",
    "valueString": "1.5.0"
  }, {
    "name": "display",
    "valueString": "Krankenversichertennummer"
  }, {
    "name": "abstract",
    "valueBoolean": false
  } ]
}% 

Here is the example Patient:

{
    "resourceType": "Patient",
    "id": "Example-patient-address-de-basis",
    "identifier": [
        {
            "type": {
                "coding": [
                    {
                        "code": "KVZ10",
                        "system": "http://fhir.de/CodeSystem/identifier-type-de-basis"
                    }
                ]
            },
            "system": "http://fhir.de/sid/gkv/kvid-10",
            "value": "X234567890"
        }
    ],
    "name": [
        {
            "use": "official",
            "family": "Musterman Test",
            "_family": {
                "extension": [
                    {
                        "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                        "valueString": "Test"
                    }
                ]
            },
            "given": [
                "Martina"
            ]
        }
    ],
    "birthDate": "1935-06-22",
    "address": [
        {
            "type": "physical",
            "line": [
                "Musterstr. 1"
            ],
            "_line": [
                {
                    "extension": [
                        {
                            "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber",
                            "valueString": "1"
                        },
                        {
                            "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName",
                            "valueString": "Musterstr."
                        }
                    ]
                }
            ],
            "city": "Köln",
            "postalCode": "50823"
        }
    ]
}
@XcrigX
Copy link
Contributor

XcrigX commented Dec 2, 2024

The message there is telling you the issue - Identifier.type has an extensible binding on this ValueSet: https://hl7.org/fhir/R4/valueset-identifier-type.html

You are providing a code outside of the specified valueset - which is allowed since it's an extensible binding - but the validator is warning you regardless. I don't know of a way to suppress that warning.

Anyway, it would be an issue to report against the HAPI validator, not this project which is merely using the validator.

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

2 participants