FHIRClient - v3.0.0
    Preparing search index...

    Function byCode

    • Groups the observations by code. Returns a map that will look like:

      const map = client.byCodes(observations, "code");
      // map = {
      // "55284-4": [ observation1, observation2 ],
      // "6082-2": [ observation3 ]
      // }

      Parameters

      • observations: Observation | Observation[]

        Array of observations

      • property: string

        The name of a CodeableConcept property to group by

      Returns ObservationMap