FHIR Chat · difference between these SearchParameters · implementers

Stream: implementers

Topic: difference between these SearchParameters


view this post on Zulip Eric Haas (Jun 25 2021 at 04:15):

The expression for _id parameter is "Resource.id". In contrast the expression for the patient parameter is:

expression: >-
  AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) |
  CareTeam.subject.where(resolve() is Patient) |
  ClinicalImpression.subject.where(resolve() is Patient) |
  Composition.subject.where(resolve() is Patient) |
  Condition.subject.where(resolve() is Patient) | Consent.patient |
  DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) |
  DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is
  Patient) | DocumentManifest.subject.where(resolve() is Patient) |
  DocumentReference.subject.where(resolve() is Patient) |
  Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient |
  FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) |
  Goal.subject.where(resolve() is Patient) |
  ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient |
  List.subject.where(resolve() is Patient) |
  MedicationAdministration.subject.where(resolve() is Patient) |
  MedicationDispense.subject.where(resolve() is Patient) |
  MedicationRequest.subject.where(resolve() is Patient) |
  MedicationStatement.subject.where(resolve() is Patient) |
  NutritionOrder.patient | Observation.subject.where(resolve() is Patient) |
  Procedure.subject.where(resolve() is Patient) |
  RiskAssessment.subject.where(resolve() is Patient) |
  ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient |
  VisionPrescription.patient

why isn't the _id similar in that it would enumerate all the Resources like Patient.id | Procedure.id...? And is Resource.id a valid fhirpath expression when applied to a Patient resource for example?

view this post on Zulip Grahame Grieve (Jun 25 2021 at 04:37):

why iterate for _id when they're all the same?

view this post on Zulip Josh Mandel (Jun 25 2021 at 14:05):

is Resouece.id a valid FHIR path expression when evaluated against a Patient, though? Is this defined or documented somewhere?

view this post on Zulip Eric Haas (Jun 25 2021 at 16:05):

Warnings arise when derive from it and use the expression Patient.id.


Last updated: Apr 12 2022 at 19:14 UTC