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

Language without region considered invalid by $validate operation. #2920

Closed
tadgh opened this issue Aug 25, 2021 · 0 comments · Fixed by #2921
Closed

Language without region considered invalid by $validate operation. #2920

tadgh opened this issue Aug 25, 2021 · 0 comments · Fixed by #2921

Comments

@tadgh
Copy link
Collaborator

tadgh commented Aug 25, 2021

When a resource is subbmited which has a communication, and it has Prefered Binding to Common languages and Max binding to All languages, it fails with a validation error. Note the following json uses only language nl, instead of the language-region combo nl-DE or nl-NL.

{
  "resourceType": "Patient",
  "id": "f001",
  "communication": [
    {
      "language": {
        "coding": [
          {
            "system": "urn:ietf:bcp:47",
            "code": "nl",
            "display": "Dutch"
          }
        ],
        "text": "Nederlands"
      },
      "preferred": true
    }
  ]
}

This should not fail validation, as nl is a valid bcp47 language tag.

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

Successfully merging a pull request may close this issue.

1 participant