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

Patient $validate operation with Remote Terminology Service enabled returns 400 Bad Request #6122

Closed
volodymyr-korzh opened this issue Jul 17, 2024 · 0 comments · Fixed by #6124
Assignees

Comments

@volodymyr-korzh
Copy link
Collaborator

Patient $validate operation with Remote Terminology Service enabled returns 400 Bad Request response instead of 200 OK with a list of validation results.

To Reproduce

  1. Add RemoteTerminologyServiceValidationSupport to ValidationSupportChain
  2. Create Patient:
{
  "resourceType": "Patient",
  "active": true,
  "deceasedDateTime": "2015-02-14T13:42:00",
  "identifier": [ { "system": "urn:oid:1.2.36.146.595.217.0.1", "value": "12346" } ],
  "name": [ {
      "family": "smith",
      "given": [ "Jane" ]
  } ],
  "gender": "male",
  "birthDate": "1974-12-25",
  "telecom":[{"value":"581-309-1234"}]
}
  1. Execute $validate operation on Patient instance:
    GET https://localhost:8000/Patient/1652/$validate
  2. See 400 Bad Request response:
{
	"resourceType": "OperationOutcome",
	"issue": [
		{
			"severity": "error",
			"code": "invalid",
			"details": {
				"text": "[28909888-9c0c-4070-a15a-1e239b795686]: A code/system pair must be provided."
			},
			"diagnostics": "[28909888-9c0c-4070-a15a-1e239b795686]: A code/system pair must be provided."
		},
		{
			"severity": "information",
			"code": "informational",
			"diagnostics": "X-Request-Id: 822bdfe6-44c0-4341-9df6-5f5493f0e02b"
		}
	]
}

Expected behaviour
200 OK response with a list of validation results should be returned instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants