@medplum/core 5.2.0 → 5.2.1
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 +7 -7
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +48 -2
- package/dist/esm/index.d.ts +48 -2
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { AccessPolicyResource } from '@medplum/fhirtypes';
|
|
|
3
3
|
import type { Address } from '@medplum/fhirtypes';
|
|
4
4
|
import type { Agent } from '@medplum/fhirtypes';
|
|
5
5
|
import type { Appointment } from '@medplum/fhirtypes';
|
|
6
|
+
import type { AppointmentParticipant } from '@medplum/fhirtypes';
|
|
6
7
|
import type { Attachment } from '@medplum/fhirtypes';
|
|
7
8
|
import type { Binary } from '@medplum/fhirtypes';
|
|
8
9
|
import type { Bot } from '@medplum/fhirtypes';
|
|
@@ -1728,9 +1729,11 @@ export declare const ExternalSecretSystems: {
|
|
|
1728
1729
|
export declare function extractAccountReferences(meta: Meta | undefined): Reference[] | undefined;
|
|
1729
1730
|
|
|
1730
1731
|
/**
|
|
1731
|
-
* Extracts HealthcareService references from serviceType concepts.
|
|
1732
|
+
* Extracts the distinct HealthcareService references from serviceType concepts.
|
|
1733
|
+
* A service with several `type` codes is represented by one concept per code,
|
|
1734
|
+
* each carrying the same reference; that reference is returned only once.
|
|
1732
1735
|
* @param serviceType - CodeableConcept values to inspect
|
|
1733
|
-
* @returns HealthcareService references embedded in the concepts
|
|
1736
|
+
* @returns HealthcareService references embedded in the concepts, in first-seen order
|
|
1734
1737
|
*/
|
|
1735
1738
|
export declare function extractServiceTypeReferences(serviceType: CodeableConcept[] | undefined): (Reference<HealthcareService> & {
|
|
1736
1739
|
reference: string;
|
|
@@ -2698,6 +2701,14 @@ export declare function getPendingMedicationOrderStatus(medicationRequest: Medic
|
|
|
2698
2701
|
*/
|
|
2699
2702
|
export declare function getPreferredPharmaciesFromPatient(patient: Patient, preferenceTypeSystem?: string): PreferredPharmacy[];
|
|
2700
2703
|
|
|
2704
|
+
/**
|
|
2705
|
+
* Reads the appointment's primary provider, as {@link setPrimaryProvider} marked it.
|
|
2706
|
+
*
|
|
2707
|
+
* @param appointment - The appointment to read.
|
|
2708
|
+
* @returns The primary provider, or undefined for an appointment marking none.
|
|
2709
|
+
*/
|
|
2710
|
+
export declare function getPrimaryProvider(appointment: Appointment): Reference | undefined;
|
|
2711
|
+
|
|
2701
2712
|
/**
|
|
2702
2713
|
* Returns a human friendly display name for a FHIR element property or slice name
|
|
2703
2714
|
* @param propertyName - The FHIR element property or slice name
|
|
@@ -7828,6 +7839,9 @@ export declare class ParserBuilder {
|
|
|
7828
7839
|
*/
|
|
7829
7840
|
export declare function parseXFhirQuery(query: string, variables: Record<string, TypedValue>, context?: TypedValue[]): SearchRequest;
|
|
7830
7841
|
|
|
7842
|
+
/** Code system for `Appointment.participant.type`. */
|
|
7843
|
+
export declare const PARTICIPATION_TYPE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-ParticipationType";
|
|
7844
|
+
|
|
7831
7845
|
export declare type Patch = Operation[];
|
|
7832
7846
|
|
|
7833
7847
|
/**
|
|
@@ -8014,6 +8028,9 @@ export declare class ParserBuilder {
|
|
|
8014
8028
|
parse(parser: Parser, token: Token): Atom;
|
|
8015
8029
|
}
|
|
8016
8030
|
|
|
8031
|
+
/** The participation type marking an appointment's primary provider. */
|
|
8032
|
+
export declare const PRIMARY_PERFORMER_CODE = "PPRF";
|
|
8033
|
+
|
|
8017
8034
|
export declare type ProfileResource = Patient | Practitioner | RelatedPerson;
|
|
8018
8035
|
|
|
8019
8036
|
/**
|
|
@@ -8313,6 +8330,24 @@ export declare class ParserBuilder {
|
|
|
8313
8330
|
private _clearTimeouts;
|
|
8314
8331
|
}
|
|
8315
8332
|
|
|
8333
|
+
/**
|
|
8334
|
+
* R5's `Appointment.recurrenceId`, as the R4 cross-version extension: an occurrence's 1-based
|
|
8335
|
+
* position (valuePositiveInt) in a series booked via `Appointment/$book`.
|
|
8336
|
+
*/
|
|
8337
|
+
export declare const RecurrenceIdExtensionURI = "http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.recurrenceId";
|
|
8338
|
+
|
|
8339
|
+
/**
|
|
8340
|
+
* R5's `Appointment.recurrenceTemplate`, as the R4 cross-version extension. `Appointment/$find`
|
|
8341
|
+
* with `occurrence-count` adds it to each proposed first occurrence of a weekly series.
|
|
8342
|
+
* Sub-extensions are named for R5's child elements: `timezone` (valueCodeableConcept, IANA),
|
|
8343
|
+
* `recurrenceType` (valueCodeableConcept, UCUM `wk`), `occurrenceCount` (valuePositiveInt), and
|
|
8344
|
+
* `weeklyTemplate` (the weekday, e.g. `monday`: valueBoolean true, and `weekInterval`: valuePositiveInt).
|
|
8345
|
+
*/
|
|
8346
|
+
export declare const RecurrenceTemplateExtensionURI = "http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.recurrenceTemplate";
|
|
8347
|
+
|
|
8348
|
+
/** Identifier system for the `Appointment.identifier` shared by every occurrence of one booked recurring series. */
|
|
8349
|
+
export declare const RecurringAppointmentSeriesIdentifierSystem = "https://medplum.com/fhir/recurring-appointment-series";
|
|
8350
|
+
|
|
8316
8351
|
export declare function redirect(url: URL): OperationOutcome;
|
|
8317
8352
|
|
|
8318
8353
|
export declare function redirectOk(url: URL): OperationOutcome;
|
|
@@ -8753,6 +8788,17 @@ export declare class ParserBuilder {
|
|
|
8753
8788
|
use?: Identifier['use'];
|
|
8754
8789
|
}
|
|
8755
8790
|
|
|
8791
|
+
/**
|
|
8792
|
+
* Marks one participant as the appointment's primary provider, and no other.
|
|
8793
|
+
*
|
|
8794
|
+
* A downstream system that accepts one provider per appointment should be sent the primary.
|
|
8795
|
+
*
|
|
8796
|
+
* @param participants - The appointment's participants.
|
|
8797
|
+
* @param primary - The actor to mark, or undefined to mark nobody.
|
|
8798
|
+
* @returns The participants, with the mark moved onto `primary` and any other `type` kept.
|
|
8799
|
+
*/
|
|
8800
|
+
export declare function setPrimaryProvider(participants: readonly AppointmentParticipant[], primary: Reference | undefined): AppointmentParticipant[];
|
|
8801
|
+
|
|
8756
8802
|
/**
|
|
8757
8803
|
* Adds the rate limit reset delay to an OperationOutcome.
|
|
8758
8804
|
* @param outcome - The rate limit outcome.
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { AccessPolicyResource } from '@medplum/fhirtypes';
|
|
|
3
3
|
import type { Address } from '@medplum/fhirtypes';
|
|
4
4
|
import type { Agent } from '@medplum/fhirtypes';
|
|
5
5
|
import type { Appointment } from '@medplum/fhirtypes';
|
|
6
|
+
import type { AppointmentParticipant } from '@medplum/fhirtypes';
|
|
6
7
|
import type { Attachment } from '@medplum/fhirtypes';
|
|
7
8
|
import type { Binary } from '@medplum/fhirtypes';
|
|
8
9
|
import type { Bot } from '@medplum/fhirtypes';
|
|
@@ -1728,9 +1729,11 @@ export declare const ExternalSecretSystems: {
|
|
|
1728
1729
|
export declare function extractAccountReferences(meta: Meta | undefined): Reference[] | undefined;
|
|
1729
1730
|
|
|
1730
1731
|
/**
|
|
1731
|
-
* Extracts HealthcareService references from serviceType concepts.
|
|
1732
|
+
* Extracts the distinct HealthcareService references from serviceType concepts.
|
|
1733
|
+
* A service with several `type` codes is represented by one concept per code,
|
|
1734
|
+
* each carrying the same reference; that reference is returned only once.
|
|
1732
1735
|
* @param serviceType - CodeableConcept values to inspect
|
|
1733
|
-
* @returns HealthcareService references embedded in the concepts
|
|
1736
|
+
* @returns HealthcareService references embedded in the concepts, in first-seen order
|
|
1734
1737
|
*/
|
|
1735
1738
|
export declare function extractServiceTypeReferences(serviceType: CodeableConcept[] | undefined): (Reference<HealthcareService> & {
|
|
1736
1739
|
reference: string;
|
|
@@ -2698,6 +2701,14 @@ export declare function getPendingMedicationOrderStatus(medicationRequest: Medic
|
|
|
2698
2701
|
*/
|
|
2699
2702
|
export declare function getPreferredPharmaciesFromPatient(patient: Patient, preferenceTypeSystem?: string): PreferredPharmacy[];
|
|
2700
2703
|
|
|
2704
|
+
/**
|
|
2705
|
+
* Reads the appointment's primary provider, as {@link setPrimaryProvider} marked it.
|
|
2706
|
+
*
|
|
2707
|
+
* @param appointment - The appointment to read.
|
|
2708
|
+
* @returns The primary provider, or undefined for an appointment marking none.
|
|
2709
|
+
*/
|
|
2710
|
+
export declare function getPrimaryProvider(appointment: Appointment): Reference | undefined;
|
|
2711
|
+
|
|
2701
2712
|
/**
|
|
2702
2713
|
* Returns a human friendly display name for a FHIR element property or slice name
|
|
2703
2714
|
* @param propertyName - The FHIR element property or slice name
|
|
@@ -7828,6 +7839,9 @@ export declare class ParserBuilder {
|
|
|
7828
7839
|
*/
|
|
7829
7840
|
export declare function parseXFhirQuery(query: string, variables: Record<string, TypedValue>, context?: TypedValue[]): SearchRequest;
|
|
7830
7841
|
|
|
7842
|
+
/** Code system for `Appointment.participant.type`. */
|
|
7843
|
+
export declare const PARTICIPATION_TYPE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-ParticipationType";
|
|
7844
|
+
|
|
7831
7845
|
export declare type Patch = Operation[];
|
|
7832
7846
|
|
|
7833
7847
|
/**
|
|
@@ -8014,6 +8028,9 @@ export declare class ParserBuilder {
|
|
|
8014
8028
|
parse(parser: Parser, token: Token): Atom;
|
|
8015
8029
|
}
|
|
8016
8030
|
|
|
8031
|
+
/** The participation type marking an appointment's primary provider. */
|
|
8032
|
+
export declare const PRIMARY_PERFORMER_CODE = "PPRF";
|
|
8033
|
+
|
|
8017
8034
|
export declare type ProfileResource = Patient | Practitioner | RelatedPerson;
|
|
8018
8035
|
|
|
8019
8036
|
/**
|
|
@@ -8313,6 +8330,24 @@ export declare class ParserBuilder {
|
|
|
8313
8330
|
private _clearTimeouts;
|
|
8314
8331
|
}
|
|
8315
8332
|
|
|
8333
|
+
/**
|
|
8334
|
+
* R5's `Appointment.recurrenceId`, as the R4 cross-version extension: an occurrence's 1-based
|
|
8335
|
+
* position (valuePositiveInt) in a series booked via `Appointment/$book`.
|
|
8336
|
+
*/
|
|
8337
|
+
export declare const RecurrenceIdExtensionURI = "http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.recurrenceId";
|
|
8338
|
+
|
|
8339
|
+
/**
|
|
8340
|
+
* R5's `Appointment.recurrenceTemplate`, as the R4 cross-version extension. `Appointment/$find`
|
|
8341
|
+
* with `occurrence-count` adds it to each proposed first occurrence of a weekly series.
|
|
8342
|
+
* Sub-extensions are named for R5's child elements: `timezone` (valueCodeableConcept, IANA),
|
|
8343
|
+
* `recurrenceType` (valueCodeableConcept, UCUM `wk`), `occurrenceCount` (valuePositiveInt), and
|
|
8344
|
+
* `weeklyTemplate` (the weekday, e.g. `monday`: valueBoolean true, and `weekInterval`: valuePositiveInt).
|
|
8345
|
+
*/
|
|
8346
|
+
export declare const RecurrenceTemplateExtensionURI = "http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.recurrenceTemplate";
|
|
8347
|
+
|
|
8348
|
+
/** Identifier system for the `Appointment.identifier` shared by every occurrence of one booked recurring series. */
|
|
8349
|
+
export declare const RecurringAppointmentSeriesIdentifierSystem = "https://medplum.com/fhir/recurring-appointment-series";
|
|
8350
|
+
|
|
8316
8351
|
export declare function redirect(url: URL): OperationOutcome;
|
|
8317
8352
|
|
|
8318
8353
|
export declare function redirectOk(url: URL): OperationOutcome;
|
|
@@ -8753,6 +8788,17 @@ export declare class ParserBuilder {
|
|
|
8753
8788
|
use?: Identifier['use'];
|
|
8754
8789
|
}
|
|
8755
8790
|
|
|
8791
|
+
/**
|
|
8792
|
+
* Marks one participant as the appointment's primary provider, and no other.
|
|
8793
|
+
*
|
|
8794
|
+
* A downstream system that accepts one provider per appointment should be sent the primary.
|
|
8795
|
+
*
|
|
8796
|
+
* @param participants - The appointment's participants.
|
|
8797
|
+
* @param primary - The actor to mark, or undefined to mark nobody.
|
|
8798
|
+
* @returns The participants, with the mark moved onto `primary` and any other `type` kept.
|
|
8799
|
+
*/
|
|
8800
|
+
export declare function setPrimaryProvider(participants: readonly AppointmentParticipant[], primary: Reference | undefined): AppointmentParticipant[];
|
|
8801
|
+
|
|
8756
8802
|
/**
|
|
8757
8803
|
* Adds the rate limit reset delay to an OperationOutcome.
|
|
8758
8804
|
* @param outcome - The rate limit outcome.
|