First groups the observations by code using byCode. Then returns a function that accepts codes as arguments and will return a flat array of observations having that codes. Example:
byCode
const filter = client.byCodes(observations, "category");filter("laboratory") // => [ observation1, observation2 ]filter("vital-signs") // => [ observation3 ]filter("laboratory", "vital-signs") // => [ observation1, observation2, observation3 ] Copy
const filter = client.byCodes(observations, "category");filter("laboratory") // => [ observation1, observation2 ]filter("vital-signs") // => [ observation3 ]filter("laboratory", "vital-signs") // => [ observation1, observation2, observation3 ]
Array of observations
The name of a CodeableConcept property to group by
First groups the observations by code using
byCode. Then returns a function that accepts codes as arguments and will return a flat array of observations having that codes. Example: