@medplum/core 5.2.2 → 5.2.3
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 +43 -0
- package/dist/esm/index.d.ts +43 -0
- 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
|
@@ -329,8 +329,25 @@ export declare interface AgentUpgradeResponse extends BaseAgentMessage {
|
|
|
329
329
|
statusCode: number;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
+
/**
|
|
333
|
+
* The `Schedule.serviceType` code marking a Schedule that offers every HealthcareService, including ones
|
|
334
|
+
* created later.
|
|
335
|
+
*
|
|
336
|
+
* It decides only which services the Schedule accepts, not when: hours still resolve from the Schedule's
|
|
337
|
+
* SchedulingParameters for the service, then the service's own, then the defaults. Build it with
|
|
338
|
+
* `allServiceTypesCodeableConcept`.
|
|
339
|
+
*/
|
|
340
|
+
export declare const ALL_SERVICE_TYPES_CODE = "all";
|
|
341
|
+
|
|
332
342
|
export declare const allOk: OperationOutcome;
|
|
333
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Builds the CodeableConcept that marks a Schedule as offering every HealthcareService, for
|
|
346
|
+
* `Schedule.serviceType`. An Appointment never carries it: it records the service actually booked.
|
|
347
|
+
* @returns The marker concept
|
|
348
|
+
*/
|
|
349
|
+
export declare function allServiceTypesCodeableConcept(): CodeableConcept;
|
|
350
|
+
|
|
334
351
|
export declare type AnchorResourceOpenEvent<T extends FhircastAnchorResourceType> = T extends FhircastAnchorResourceType ? `${T}-open` : never;
|
|
335
352
|
|
|
336
353
|
/**
|
|
@@ -8566,6 +8583,9 @@ export declare class ParserBuilder {
|
|
|
8566
8583
|
/** Every eligibility code naming something a booking must carry. */
|
|
8567
8584
|
export declare const SCHEDULING_REQUIREMENT_CODES: readonly ["requires-procedure", "requires-diagnosis", "requires-medical-necessity"];
|
|
8568
8585
|
|
|
8586
|
+
/** Code system for the `Schedule.serviceType` codes Medplum scheduling defines. */
|
|
8587
|
+
export declare const SCHEDULING_SERVICE_TYPE_SYSTEM = "https://medplum.com/fhir/CodeSystem/scheduling-service-type";
|
|
8588
|
+
|
|
8569
8589
|
/**
|
|
8570
8590
|
* This extension marks an `Appointment` created by the `$book` operation. Its
|
|
8571
8591
|
* value is a string recording the Medplum server version that handled the booking.
|
|
@@ -8710,8 +8730,20 @@ export declare class ParserBuilder {
|
|
|
8710
8730
|
|
|
8711
8731
|
export declare function serverTimeout(msg?: string): OperationOutcome;
|
|
8712
8732
|
|
|
8733
|
+
/**
|
|
8734
|
+
* Returns whether serviceType concepts carry the marker for offering every HealthcareService.
|
|
8735
|
+
*
|
|
8736
|
+
* An empty or missing `serviceType` does not count.
|
|
8737
|
+
* @param serviceType - CodeableConcept values to inspect
|
|
8738
|
+
* @returns True if any concept is the marker
|
|
8739
|
+
*/
|
|
8740
|
+
export declare function serviceTypeIncludesAllServices(serviceType: CodeableConcept[] | undefined): boolean;
|
|
8741
|
+
|
|
8713
8742
|
/**
|
|
8714
8743
|
* Returns whether any serviceType concept refers to the given HealthcareService.
|
|
8744
|
+
*
|
|
8745
|
+
* Ignores the marker for offering every HealthcareService; use `serviceTypeOffersService` to ask whether a
|
|
8746
|
+
* Schedule can be booked for the service.
|
|
8715
8747
|
* @param serviceType - CodeableConcept values to inspect
|
|
8716
8748
|
* @param service - HealthcareService or reference to match
|
|
8717
8749
|
* @returns True if any concept references the service
|
|
@@ -8720,6 +8752,17 @@ export declare class ParserBuilder {
|
|
|
8720
8752
|
reference: string;
|
|
8721
8753
|
})): boolean;
|
|
8722
8754
|
|
|
8755
|
+
/**
|
|
8756
|
+
* Returns whether a Schedule with these serviceType concepts can be booked for the given HealthcareService:
|
|
8757
|
+
* because it refers to the service, or because it carries the marker for offering every one.
|
|
8758
|
+
* @param serviceType - CodeableConcept values to inspect
|
|
8759
|
+
* @param service - HealthcareService or reference to match
|
|
8760
|
+
* @returns True if the concepts offer the service
|
|
8761
|
+
*/
|
|
8762
|
+
export declare function serviceTypeOffersService(serviceType: CodeableConcept[] | undefined, service: WithId<HealthcareService> | (Reference<HealthcareService> & {
|
|
8763
|
+
reference: string;
|
|
8764
|
+
})): boolean;
|
|
8765
|
+
|
|
8723
8766
|
/**
|
|
8724
8767
|
* Extension URI holding a `Reference<HealthcareService>` on a `serviceType` CodeableConcept.
|
|
8725
8768
|
*
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -329,8 +329,25 @@ export declare interface AgentUpgradeResponse extends BaseAgentMessage {
|
|
|
329
329
|
statusCode: number;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
+
/**
|
|
333
|
+
* The `Schedule.serviceType` code marking a Schedule that offers every HealthcareService, including ones
|
|
334
|
+
* created later.
|
|
335
|
+
*
|
|
336
|
+
* It decides only which services the Schedule accepts, not when: hours still resolve from the Schedule's
|
|
337
|
+
* SchedulingParameters for the service, then the service's own, then the defaults. Build it with
|
|
338
|
+
* `allServiceTypesCodeableConcept`.
|
|
339
|
+
*/
|
|
340
|
+
export declare const ALL_SERVICE_TYPES_CODE = "all";
|
|
341
|
+
|
|
332
342
|
export declare const allOk: OperationOutcome;
|
|
333
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Builds the CodeableConcept that marks a Schedule as offering every HealthcareService, for
|
|
346
|
+
* `Schedule.serviceType`. An Appointment never carries it: it records the service actually booked.
|
|
347
|
+
* @returns The marker concept
|
|
348
|
+
*/
|
|
349
|
+
export declare function allServiceTypesCodeableConcept(): CodeableConcept;
|
|
350
|
+
|
|
334
351
|
export declare type AnchorResourceOpenEvent<T extends FhircastAnchorResourceType> = T extends FhircastAnchorResourceType ? `${T}-open` : never;
|
|
335
352
|
|
|
336
353
|
/**
|
|
@@ -8566,6 +8583,9 @@ export declare class ParserBuilder {
|
|
|
8566
8583
|
/** Every eligibility code naming something a booking must carry. */
|
|
8567
8584
|
export declare const SCHEDULING_REQUIREMENT_CODES: readonly ["requires-procedure", "requires-diagnosis", "requires-medical-necessity"];
|
|
8568
8585
|
|
|
8586
|
+
/** Code system for the `Schedule.serviceType` codes Medplum scheduling defines. */
|
|
8587
|
+
export declare const SCHEDULING_SERVICE_TYPE_SYSTEM = "https://medplum.com/fhir/CodeSystem/scheduling-service-type";
|
|
8588
|
+
|
|
8569
8589
|
/**
|
|
8570
8590
|
* This extension marks an `Appointment` created by the `$book` operation. Its
|
|
8571
8591
|
* value is a string recording the Medplum server version that handled the booking.
|
|
@@ -8710,8 +8730,20 @@ export declare class ParserBuilder {
|
|
|
8710
8730
|
|
|
8711
8731
|
export declare function serverTimeout(msg?: string): OperationOutcome;
|
|
8712
8732
|
|
|
8733
|
+
/**
|
|
8734
|
+
* Returns whether serviceType concepts carry the marker for offering every HealthcareService.
|
|
8735
|
+
*
|
|
8736
|
+
* An empty or missing `serviceType` does not count.
|
|
8737
|
+
* @param serviceType - CodeableConcept values to inspect
|
|
8738
|
+
* @returns True if any concept is the marker
|
|
8739
|
+
*/
|
|
8740
|
+
export declare function serviceTypeIncludesAllServices(serviceType: CodeableConcept[] | undefined): boolean;
|
|
8741
|
+
|
|
8713
8742
|
/**
|
|
8714
8743
|
* Returns whether any serviceType concept refers to the given HealthcareService.
|
|
8744
|
+
*
|
|
8745
|
+
* Ignores the marker for offering every HealthcareService; use `serviceTypeOffersService` to ask whether a
|
|
8746
|
+
* Schedule can be booked for the service.
|
|
8715
8747
|
* @param serviceType - CodeableConcept values to inspect
|
|
8716
8748
|
* @param service - HealthcareService or reference to match
|
|
8717
8749
|
* @returns True if any concept references the service
|
|
@@ -8720,6 +8752,17 @@ export declare class ParserBuilder {
|
|
|
8720
8752
|
reference: string;
|
|
8721
8753
|
})): boolean;
|
|
8722
8754
|
|
|
8755
|
+
/**
|
|
8756
|
+
* Returns whether a Schedule with these serviceType concepts can be booked for the given HealthcareService:
|
|
8757
|
+
* because it refers to the service, or because it carries the marker for offering every one.
|
|
8758
|
+
* @param serviceType - CodeableConcept values to inspect
|
|
8759
|
+
* @param service - HealthcareService or reference to match
|
|
8760
|
+
* @returns True if the concepts offer the service
|
|
8761
|
+
*/
|
|
8762
|
+
export declare function serviceTypeOffersService(serviceType: CodeableConcept[] | undefined, service: WithId<HealthcareService> | (Reference<HealthcareService> & {
|
|
8763
|
+
reference: string;
|
|
8764
|
+
})): boolean;
|
|
8765
|
+
|
|
8723
8766
|
/**
|
|
8724
8767
|
* Extension URI holding a `Reference<HealthcareService>` on a `serviceType` CodeableConcept.
|
|
8725
8768
|
*
|