@medplum/core 5.2.10 → 5.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +9 -9
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +16 -0
- package/dist/esm/index.d.ts +16 -0
- package/dist/esm/index.mjs +9 -9
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2754,6 +2754,22 @@ export declare function getPendingMedicationOrderStatus(medicationRequest: Medic
|
|
|
2754
2754
|
*/
|
|
2755
2755
|
export declare function getPreferredPharmaciesFromPatient(patient: Patient, preferenceTypeSystem?: string): PreferredPharmacy[];
|
|
2756
2756
|
|
|
2757
|
+
/**
|
|
2758
|
+
* A lab value's trailing zeros carry real significant-figure meaning (e.g. "1.30" vs "1.3"), but
|
|
2759
|
+
* JSON numbers can't distinguish them - `1.30` and `1.3` parse to the identical float, and that
|
|
2760
|
+
* distinction is gone the moment anything parses the response body as JSON. When the original
|
|
2761
|
+
* precision was captured before that happened (in `receive-from-health-gorilla`, using a custom
|
|
2762
|
+
* JSON.parse reviver to read the raw source of the parsed number), it's carried in the standard
|
|
2763
|
+
* HL7 `quantity-precision` extension on `valueQuantity`'s primitive sibling (`_value`), so the
|
|
2764
|
+
* value can still be displayed with its original precision even though `quantity.value` itself is
|
|
2765
|
+
* just the plain, precision-collapsed number.
|
|
2766
|
+
* @param quantity - A FHIR Quantity, e.g. an Observation's valueQuantity.
|
|
2767
|
+
* @returns The number of digits after the decimal point to display, or undefined if no precision
|
|
2768
|
+
* was preserved or the stored value is out of `toFixed()`'s valid range (quantity.value should
|
|
2769
|
+
* then be displayed with its default precision).
|
|
2770
|
+
*/
|
|
2771
|
+
export declare function getPreservedValuePrecision(quantity: Quantity | undefined): number | undefined;
|
|
2772
|
+
|
|
2757
2773
|
/**
|
|
2758
2774
|
* Reads the appointment's primary provider, as {@link setPrimaryProvider} marked it.
|
|
2759
2775
|
*
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2754,6 +2754,22 @@ export declare function getPendingMedicationOrderStatus(medicationRequest: Medic
|
|
|
2754
2754
|
*/
|
|
2755
2755
|
export declare function getPreferredPharmaciesFromPatient(patient: Patient, preferenceTypeSystem?: string): PreferredPharmacy[];
|
|
2756
2756
|
|
|
2757
|
+
/**
|
|
2758
|
+
* A lab value's trailing zeros carry real significant-figure meaning (e.g. "1.30" vs "1.3"), but
|
|
2759
|
+
* JSON numbers can't distinguish them - `1.30` and `1.3` parse to the identical float, and that
|
|
2760
|
+
* distinction is gone the moment anything parses the response body as JSON. When the original
|
|
2761
|
+
* precision was captured before that happened (in `receive-from-health-gorilla`, using a custom
|
|
2762
|
+
* JSON.parse reviver to read the raw source of the parsed number), it's carried in the standard
|
|
2763
|
+
* HL7 `quantity-precision` extension on `valueQuantity`'s primitive sibling (`_value`), so the
|
|
2764
|
+
* value can still be displayed with its original precision even though `quantity.value` itself is
|
|
2765
|
+
* just the plain, precision-collapsed number.
|
|
2766
|
+
* @param quantity - A FHIR Quantity, e.g. an Observation's valueQuantity.
|
|
2767
|
+
* @returns The number of digits after the decimal point to display, or undefined if no precision
|
|
2768
|
+
* was preserved or the stored value is out of `toFixed()`'s valid range (quantity.value should
|
|
2769
|
+
* then be displayed with its default precision).
|
|
2770
|
+
*/
|
|
2771
|
+
export declare function getPreservedValuePrecision(quantity: Quantity | undefined): number | undefined;
|
|
2772
|
+
|
|
2757
2773
|
/**
|
|
2758
2774
|
* Reads the appointment's primary provider, as {@link setPrimaryProvider} marked it.
|
|
2759
2775
|
*
|