Skip to content

ServiceRequest date search issue #727

@gnachtigal

Description

@gnachtigal

Here's the issue that I'm currently seeing on ServiceRequest:
Image

As you can see, in this response the authoredOn field does not include a datetime but only a date.
From my understanding, Inferno should not attempt to search for a datetime when the resources only includes a date.

From the spec, it does not require that it support datetime search:
https://www.hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-servicerequest.html

Sample 200 response

  "resourceType": "Bundle",
  "type": "searchset",
  "total": 1,
  "entry": [
    {
      "fullUrl": "https://fhir.staging.flatiron.io/fhir/ServiceRequest/OH--OTZU9NVBC1D44T43JY1UJP.PD--06DG7K3YY2QCFAGV7EST",
      "resource": {
        "resourceType": "ServiceRequest",
        "id": "OH--OTZU9NVBC1D44T43JY1UJP.PD--06DG7K3YY2QCFAGV7EST",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-servicerequest"
          ]
        },
        "status": "active",
        "intent": "order",
        "category": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "108252007",
                "display": "Laboratory procedure"
              }
            ]
          }
        ],
        "code": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
              "code": "as-text",
              "display": "As Text"
            }
          ],
          "text": "Hemoglobin A1C"
        },
        "subject": {
          "reference": "Patient/PD--06DG7K3YY2QCFAGV7EST.GH--0648TB2T5CQNQGR2WQQP",
          "type": "Patient"
        },
        "occurrencePeriod": {
          "start": "2025-12-09T00:00:00+00:00"
        },
        "authoredOn": "2025-12-09",
        "requester": {
          "reference": "Practitioner/UH-B9BLPMQD214KFAE4X35KLT.GH--0648TB2T5CQNQGR2WQQP",
          "type": "Practitioner"
        },
        "reasonCode": [
          {
            "coding": [
              {
                "system": "http://hl7.org/fhir/sid/icd-10-cm",
                "version": "2022-01-01",
                "code": "C40.02"
              }
            ]
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}```


Metadata

Metadata

Assignees

No one assigned

    Labels

    question answeredThis issue has been investigated and replied by Inferno team. No further action needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions