hapifhir / hapi-fhir

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

IdDt should ignore url parameters when ingesting string value #2951

Open TipzCM opened 3 years ago

TipzCM commented 3 years ago

NOTE: Before filing a ticket, please see the following URL: https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help

Describe the bug IdDt cannot ingest values that have query parameters. Create a new IdDt / IIdAndType object with a url that contains query parameters, type is incorrectly coerced.

To Reproduce Steps to reproduce the behavior:

Expected behavior IIdAndType should ignore query parameters.

Environment (please complete the following information):

jamesagnew commented 3 years ago

Query parameters are not valid in a FHIR ID, which is why IdDt is (correctly IMO) not handing them.

What is the use case here?