LinuxForHealth / FHIR

The LinuxForHealth FHIR® Server and related projects
https://linuxforhealth.github.io/FHIR
Apache License 2.0
326 stars 157 forks source link

Request URLs for bundled create requests should allow a leading "/" on the url field #4172

Open jecihjoy opened 1 year ago

jecihjoy commented 1 year ago

From the issue raised here where a bundle with request urls having a leading "/" throws a non clear exception;

The error "text": "Request URL for bundled create requests should have a path with exactly one token (<resourceType>)." might not be descriptive enough

Suggesting that either

  1. To allow both "url": "/Observation" and "url": "Observation" to work
  2. Or, to throw a clear exception