hapifhir / hapi-fhir

🔥 HAPI FHIR - Java API for HL7 FHIR Clients and Servers
http://hapifhir.io
Apache License 2.0
2.04k stars 1.33k forks source link

Practitioner and Patient name search does not include HumanName.text #967

Open splatch opened 6 years ago

splatch commented 6 years ago

HAPI Patient and Practitioner search is not inline with FHIR specification.

Given the test resource with name:

    {
      "use": "usual",
      "text": "Madame Pyrtula BOSSI",
      "family": "BOSSI",
      "given": [
        "Pyrtula"
      ]
    }

Search request http://hapi.fhir.org/baseDstu3/Practitioner?name=Madame does not return any data even if there is matching HumanName.text in following resource: http://hapi.fhir.org/baseDstu3/Practitioner/1865543

FHIR spec suggest following thing:

name (string) A  server defined search that may match any of the string fields in the HumanName, including family, given, prefix, suffix, suffix, and/or text

Apparently HAPI based servers ignore text attribute in name search which might be relevant in some cases.

outfield commented 5 years ago

Same here.

linforestzhang commented 3 years ago

Same here.