@medplum/dosespot-core 5.1.2
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 +2 -0
- package/dist/cjs/index.cjs.map +7 -0
- package/dist/cjs/index.d.ts +84 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/index.d.ts +84 -0
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/index.mjs.map +7 -0
- package/dist/esm/package.json +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var index_exports={};__export(index_exports,{DOSESPOT_ADD_FAVORITE_MEDICATION_BOT:()=>DOSESPOT_ADD_FAVORITE_MEDICATION_BOT,DOSESPOT_ADD_PATIENT_PHARMACY_BOT:()=>DOSESPOT_ADD_PATIENT_PHARMACY_BOT,DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM:()=>DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM,DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM:()=>DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM,DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT:()=>DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT,DOSESPOT_IFRAME_BOT:()=>DOSESPOT_IFRAME_BOT,DOSESPOT_MEDICATION_HISTORY_BOT:()=>DOSESPOT_MEDICATION_HISTORY_BOT,DOSESPOT_NOTIFICATION_COUNTS_BOT:()=>DOSESPOT_NOTIFICATION_COUNTS_BOT,DOSESPOT_PATIENT_ID_SYSTEM:()=>DOSESPOT_PATIENT_ID_SYSTEM,DOSESPOT_PATIENT_SYNC_BOT:()=>DOSESPOT_PATIENT_SYNC_BOT,DOSESPOT_PHARMACY_ID_SYSTEM:()=>DOSESPOT_PHARMACY_ID_SYSTEM,DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM:()=>DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM,DOSESPOT_PRESCRIPTIONS_SYNC_BOT:()=>DOSESPOT_PRESCRIPTIONS_SYNC_BOT,DOSESPOT_SEARCH_MEDICATIONS_BOT:()=>DOSESPOT_SEARCH_MEDICATIONS_BOT,DOSESPOT_SEARCH_PHARMACY_BOT:()=>DOSESPOT_SEARCH_PHARMACY_BOT,MEDPLUM_BOT_SYSTEM:()=>MEDPLUM_BOT_SYSTEM,PATIENT_PREFERRED_PHARMACY_URL:()=>import_core.PATIENT_PREFERRED_PHARMACY_URL,PHARMACY_PREFERENCE_TYPE_SYSTEM:()=>import_core.PHARMACY_PREFERENCE_TYPE_SYSTEM,PHARMACY_TYPE_PREFERRED:()=>import_core.PHARMACY_TYPE_PREFERRED,PHARMACY_TYPE_PRIMARY:()=>import_core.PHARMACY_TYPE_PRIMARY,addPreferredPharmacyToPatient:()=>import_core.addPreferredPharmacyToPatient,createPreferredPharmacyExtension:()=>import_core.createPreferredPharmacyExtension,getPreferredPharmaciesFromPatient:()=>import_core.getPreferredPharmaciesFromPatient,isAddPharmacyResponse:()=>import_core.isAddPharmacyResponse,isOrganizationArray:()=>import_core.isOrganizationArray,removePreferredPharmacyFromPatient:()=>import_core.removePreferredPharmacyFromPatient});module.exports=__toCommonJS(index_exports);var import_core=require("@medplum/core"),DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM="https://dosespot.com/pharmacy-preference-type",MEDPLUM_BOT_SYSTEM="https://www.medplum.com/bots",DOSESPOT_PATIENT_ID_SYSTEM="https://dosespot.com/patient-id",DOSESPOT_PHARMACY_ID_SYSTEM="https://dosespot.com/pharmacy-id",DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM="https://dosespot.com/clinic-favorite-medication-id",DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM="https://dosespot.com/dispensable-drug-id",DOSESPOT_SEARCH_PHARMACY_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-search-pharmacy-bot"},DOSESPOT_ADD_PATIENT_PHARMACY_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-add-patient-pharmacy-bot"},DOSESPOT_PATIENT_SYNC_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-patient-sync-bot"},DOSESPOT_IFRAME_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-iframe-bot"},DOSESPOT_ADD_FAVORITE_MEDICATION_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-add-favorite-medication-bot"},DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-get-favorite-medications-bot"},DOSESPOT_SEARCH_MEDICATIONS_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-search-medication-bot"},DOSESPOT_MEDICATION_HISTORY_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-medication-history-bot"},DOSESPOT_PRESCRIPTIONS_SYNC_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-prescriptions-sync-bot"},DOSESPOT_NOTIFICATION_COUNTS_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-notification-counts-bot"};0&&(module.exports={DOSESPOT_ADD_FAVORITE_MEDICATION_BOT,DOSESPOT_ADD_PATIENT_PHARMACY_BOT,DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM,DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM,DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT,DOSESPOT_IFRAME_BOT,DOSESPOT_MEDICATION_HISTORY_BOT,DOSESPOT_NOTIFICATION_COUNTS_BOT,DOSESPOT_PATIENT_ID_SYSTEM,DOSESPOT_PATIENT_SYNC_BOT,DOSESPOT_PHARMACY_ID_SYSTEM,DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM,DOSESPOT_PRESCRIPTIONS_SYNC_BOT,DOSESPOT_SEARCH_MEDICATIONS_BOT,DOSESPOT_SEARCH_PHARMACY_BOT,MEDPLUM_BOT_SYSTEM,PATIENT_PREFERRED_PHARMACY_URL,PHARMACY_PREFERENCE_TYPE_SYSTEM,PHARMACY_TYPE_PREFERRED,PHARMACY_TYPE_PRIMARY,addPreferredPharmacyToPatient,createPreferredPharmacyExtension,getPreferredPharmaciesFromPatient,isAddPharmacyResponse,isOrganizationArray,removePreferredPharmacyFromPatient});
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts", "../../src/pharmacy-utils.ts"],
|
|
4
|
+
"sourcesContent": ["// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors\n// SPDX-License-Identifier: Apache-2.0\n\nexport {\n DOSESPOT_ADD_FAVORITE_MEDICATION_BOT,\n DOSESPOT_ADD_PATIENT_PHARMACY_BOT,\n DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM,\n DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM,\n DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT,\n DOSESPOT_IFRAME_BOT,\n DOSESPOT_MEDICATION_HISTORY_BOT,\n DOSESPOT_NOTIFICATION_COUNTS_BOT,\n DOSESPOT_PATIENT_ID_SYSTEM,\n DOSESPOT_PATIENT_SYNC_BOT,\n DOSESPOT_PHARMACY_ID_SYSTEM,\n DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM,\n DOSESPOT_PRESCRIPTIONS_SYNC_BOT,\n DOSESPOT_SEARCH_MEDICATIONS_BOT,\n DOSESPOT_SEARCH_PHARMACY_BOT,\n MEDPLUM_BOT_SYSTEM,\n // Pharmacy extension URLs and systems (re-exported from @medplum/core)\n PATIENT_PREFERRED_PHARMACY_URL,\n PHARMACY_PREFERENCE_TYPE_SYSTEM,\n PHARMACY_TYPE_PREFERRED,\n PHARMACY_TYPE_PRIMARY,\n // Pharmacy utility functions (re-exported from @medplum/core)\n addPreferredPharmacyToPatient,\n createPreferredPharmacyExtension,\n getPreferredPharmaciesFromPatient,\n isAddPharmacyResponse,\n isOrganizationArray,\n removePreferredPharmacyFromPatient,\n} from './pharmacy-utils';\nexport type {\n AddFavoriteParams,\n AddPharmacyResponse,\n DoseSpotNotificationCountsResponse,\n PharmacySearchParams,\n PreferredPharmacy,\n} from './pharmacy-utils';\n", "// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Identifier } from '@medplum/fhirtypes';\n\n// DoseSpot-specific pharmacy preference type system\nexport const DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM = 'https://dosespot.com/pharmacy-preference-type';\n\n// Re-export generic pharmacy utilities from @medplum/core\nexport {\n addPreferredPharmacyToPatient,\n createPreferredPharmacyExtension,\n getPreferredPharmaciesFromPatient,\n isAddPharmacyResponse,\n isOrganizationArray,\n PATIENT_PREFERRED_PHARMACY_URL,\n PHARMACY_PREFERENCE_TYPE_SYSTEM,\n PHARMACY_TYPE_PREFERRED,\n PHARMACY_TYPE_PRIMARY,\n removePreferredPharmacyFromPatient,\n} from '@medplum/core';\nexport type { AddFavoriteParams, AddPharmacyResponse, PharmacySearchParams, PreferredPharmacy } from '@medplum/core';\n\n// Bot system\nexport const MEDPLUM_BOT_SYSTEM = 'https://www.medplum.com/bots';\n\n// DoseSpot identifier systems\nexport const DOSESPOT_PATIENT_ID_SYSTEM = 'https://dosespot.com/patient-id';\nexport const DOSESPOT_PHARMACY_ID_SYSTEM = 'https://dosespot.com/pharmacy-id';\nexport const DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM = 'https://dosespot.com/clinic-favorite-medication-id';\nexport const DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM = 'https://dosespot.com/dispensable-drug-id';\n\n// Bot identifiers - Pharmacy\nexport const DOSESPOT_SEARCH_PHARMACY_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-search-pharmacy-bot',\n};\n\nexport const DOSESPOT_ADD_PATIENT_PHARMACY_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-add-patient-pharmacy-bot',\n};\n\n// Bot identifiers - Patient and Medications\nexport const DOSESPOT_PATIENT_SYNC_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-patient-sync-bot',\n};\n\nexport const DOSESPOT_IFRAME_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-iframe-bot',\n};\n\nexport const DOSESPOT_ADD_FAVORITE_MEDICATION_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-add-favorite-medication-bot',\n};\n\nexport const DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-get-favorite-medications-bot',\n};\n\nexport const DOSESPOT_SEARCH_MEDICATIONS_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-search-medication-bot',\n};\n\nexport const DOSESPOT_MEDICATION_HISTORY_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-medication-history-bot',\n};\n\nexport const DOSESPOT_PRESCRIPTIONS_SYNC_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-prescriptions-sync-bot',\n};\n\nexport const DOSESPOT_NOTIFICATION_COUNTS_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-notification-counts-bot',\n};\n\n// DoseSpot notification response type\nexport interface DoseSpotNotificationCountsResponse {\n PendingPrescriptionsCount: number;\n PendingRxChangeCount: number;\n RefillRequestsCount: number;\n TransactionErrorsCount: number;\n}\n"],
|
|
5
|
+
"mappings": "wpBAAA,s1DCSA,gBAWO,yBAdM,yCAA2C,gDAkB3C,mBAAqB,+BAGrB,2BAA6B,kCAC7B,4BAA8B,mCAC9B,mCAAqC,qDACrC,oCAAsC,2CAGtC,6BAA2C,CACtD,OAAQ,mBACR,MAAO,8BACT,EAEa,kCAAgD,CAC3D,OAAQ,mBACR,MAAO,mCACT,EAGa,0BAAwC,CACnD,OAAQ,mBACR,MAAO,2BACT,EAEa,oBAAkC,CAC7C,OAAQ,mBACR,MAAO,qBACT,EAEa,qCAAmD,CAC9D,OAAQ,mBACR,MAAO,sCACT,EAEa,sCAAoD,CAC/D,OAAQ,mBACR,MAAO,uCACT,EAEa,gCAA8C,CACzD,OAAQ,mBACR,MAAO,gCACT,EAEa,gCAA8C,CACzD,OAAQ,mBACR,MAAO,iCACT,EAEa,gCAA8C,CACzD,OAAQ,mBACR,MAAO,iCACT,EAEa,iCAA+C,CAC1D,OAAQ,mBACR,MAAO,kCACT",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AddFavoriteParams } from '@medplum/core';
|
|
2
|
+
import { AddPharmacyResponse } from '@medplum/core';
|
|
3
|
+
import { addPreferredPharmacyToPatient } from '@medplum/core';
|
|
4
|
+
import { createPreferredPharmacyExtension } from '@medplum/core';
|
|
5
|
+
import { getPreferredPharmaciesFromPatient } from '@medplum/core';
|
|
6
|
+
import type { Identifier } from '@medplum/fhirtypes';
|
|
7
|
+
import { isAddPharmacyResponse } from '@medplum/core';
|
|
8
|
+
import { isOrganizationArray } from '@medplum/core';
|
|
9
|
+
import { PATIENT_PREFERRED_PHARMACY_URL } from '@medplum/core';
|
|
10
|
+
import { PHARMACY_PREFERENCE_TYPE_SYSTEM } from '@medplum/core';
|
|
11
|
+
import { PHARMACY_TYPE_PREFERRED } from '@medplum/core';
|
|
12
|
+
import { PHARMACY_TYPE_PRIMARY } from '@medplum/core';
|
|
13
|
+
import { PharmacySearchParams } from '@medplum/core';
|
|
14
|
+
import { PreferredPharmacy } from '@medplum/core';
|
|
15
|
+
import { removePreferredPharmacyFromPatient } from '@medplum/core';
|
|
16
|
+
|
|
17
|
+
export { AddFavoriteParams }
|
|
18
|
+
|
|
19
|
+
export { AddPharmacyResponse }
|
|
20
|
+
|
|
21
|
+
export { addPreferredPharmacyToPatient }
|
|
22
|
+
|
|
23
|
+
export { createPreferredPharmacyExtension }
|
|
24
|
+
|
|
25
|
+
export declare const DOSESPOT_ADD_FAVORITE_MEDICATION_BOT: Identifier;
|
|
26
|
+
|
|
27
|
+
export declare const DOSESPOT_ADD_PATIENT_PHARMACY_BOT: Identifier;
|
|
28
|
+
|
|
29
|
+
export declare const DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM = "https://dosespot.com/clinic-favorite-medication-id";
|
|
30
|
+
|
|
31
|
+
export declare const DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM = "https://dosespot.com/dispensable-drug-id";
|
|
32
|
+
|
|
33
|
+
export declare const DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT: Identifier;
|
|
34
|
+
|
|
35
|
+
export declare const DOSESPOT_IFRAME_BOT: Identifier;
|
|
36
|
+
|
|
37
|
+
export declare const DOSESPOT_MEDICATION_HISTORY_BOT: Identifier;
|
|
38
|
+
|
|
39
|
+
export declare const DOSESPOT_NOTIFICATION_COUNTS_BOT: Identifier;
|
|
40
|
+
|
|
41
|
+
export declare const DOSESPOT_PATIENT_ID_SYSTEM = "https://dosespot.com/patient-id";
|
|
42
|
+
|
|
43
|
+
export declare const DOSESPOT_PATIENT_SYNC_BOT: Identifier;
|
|
44
|
+
|
|
45
|
+
export declare const DOSESPOT_PHARMACY_ID_SYSTEM = "https://dosespot.com/pharmacy-id";
|
|
46
|
+
|
|
47
|
+
export declare const DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM = "https://dosespot.com/pharmacy-preference-type";
|
|
48
|
+
|
|
49
|
+
export declare const DOSESPOT_PRESCRIPTIONS_SYNC_BOT: Identifier;
|
|
50
|
+
|
|
51
|
+
export declare const DOSESPOT_SEARCH_MEDICATIONS_BOT: Identifier;
|
|
52
|
+
|
|
53
|
+
export declare const DOSESPOT_SEARCH_PHARMACY_BOT: Identifier;
|
|
54
|
+
|
|
55
|
+
export declare interface DoseSpotNotificationCountsResponse {
|
|
56
|
+
PendingPrescriptionsCount: number;
|
|
57
|
+
PendingRxChangeCount: number;
|
|
58
|
+
RefillRequestsCount: number;
|
|
59
|
+
TransactionErrorsCount: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { getPreferredPharmaciesFromPatient }
|
|
63
|
+
|
|
64
|
+
export { isAddPharmacyResponse }
|
|
65
|
+
|
|
66
|
+
export { isOrganizationArray }
|
|
67
|
+
|
|
68
|
+
export declare const MEDPLUM_BOT_SYSTEM = "https://www.medplum.com/bots";
|
|
69
|
+
|
|
70
|
+
export { PATIENT_PREFERRED_PHARMACY_URL }
|
|
71
|
+
|
|
72
|
+
export { PHARMACY_PREFERENCE_TYPE_SYSTEM }
|
|
73
|
+
|
|
74
|
+
export { PHARMACY_TYPE_PREFERRED }
|
|
75
|
+
|
|
76
|
+
export { PHARMACY_TYPE_PRIMARY }
|
|
77
|
+
|
|
78
|
+
export { PharmacySearchParams }
|
|
79
|
+
|
|
80
|
+
export { PreferredPharmacy }
|
|
81
|
+
|
|
82
|
+
export { removePreferredPharmacyFromPatient }
|
|
83
|
+
|
|
84
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type": "commonjs"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AddFavoriteParams } from '@medplum/core';
|
|
2
|
+
import { AddPharmacyResponse } from '@medplum/core';
|
|
3
|
+
import { addPreferredPharmacyToPatient } from '@medplum/core';
|
|
4
|
+
import { createPreferredPharmacyExtension } from '@medplum/core';
|
|
5
|
+
import { getPreferredPharmaciesFromPatient } from '@medplum/core';
|
|
6
|
+
import type { Identifier } from '@medplum/fhirtypes';
|
|
7
|
+
import { isAddPharmacyResponse } from '@medplum/core';
|
|
8
|
+
import { isOrganizationArray } from '@medplum/core';
|
|
9
|
+
import { PATIENT_PREFERRED_PHARMACY_URL } from '@medplum/core';
|
|
10
|
+
import { PHARMACY_PREFERENCE_TYPE_SYSTEM } from '@medplum/core';
|
|
11
|
+
import { PHARMACY_TYPE_PREFERRED } from '@medplum/core';
|
|
12
|
+
import { PHARMACY_TYPE_PRIMARY } from '@medplum/core';
|
|
13
|
+
import { PharmacySearchParams } from '@medplum/core';
|
|
14
|
+
import { PreferredPharmacy } from '@medplum/core';
|
|
15
|
+
import { removePreferredPharmacyFromPatient } from '@medplum/core';
|
|
16
|
+
|
|
17
|
+
export { AddFavoriteParams }
|
|
18
|
+
|
|
19
|
+
export { AddPharmacyResponse }
|
|
20
|
+
|
|
21
|
+
export { addPreferredPharmacyToPatient }
|
|
22
|
+
|
|
23
|
+
export { createPreferredPharmacyExtension }
|
|
24
|
+
|
|
25
|
+
export declare const DOSESPOT_ADD_FAVORITE_MEDICATION_BOT: Identifier;
|
|
26
|
+
|
|
27
|
+
export declare const DOSESPOT_ADD_PATIENT_PHARMACY_BOT: Identifier;
|
|
28
|
+
|
|
29
|
+
export declare const DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM = "https://dosespot.com/clinic-favorite-medication-id";
|
|
30
|
+
|
|
31
|
+
export declare const DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM = "https://dosespot.com/dispensable-drug-id";
|
|
32
|
+
|
|
33
|
+
export declare const DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT: Identifier;
|
|
34
|
+
|
|
35
|
+
export declare const DOSESPOT_IFRAME_BOT: Identifier;
|
|
36
|
+
|
|
37
|
+
export declare const DOSESPOT_MEDICATION_HISTORY_BOT: Identifier;
|
|
38
|
+
|
|
39
|
+
export declare const DOSESPOT_NOTIFICATION_COUNTS_BOT: Identifier;
|
|
40
|
+
|
|
41
|
+
export declare const DOSESPOT_PATIENT_ID_SYSTEM = "https://dosespot.com/patient-id";
|
|
42
|
+
|
|
43
|
+
export declare const DOSESPOT_PATIENT_SYNC_BOT: Identifier;
|
|
44
|
+
|
|
45
|
+
export declare const DOSESPOT_PHARMACY_ID_SYSTEM = "https://dosespot.com/pharmacy-id";
|
|
46
|
+
|
|
47
|
+
export declare const DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM = "https://dosespot.com/pharmacy-preference-type";
|
|
48
|
+
|
|
49
|
+
export declare const DOSESPOT_PRESCRIPTIONS_SYNC_BOT: Identifier;
|
|
50
|
+
|
|
51
|
+
export declare const DOSESPOT_SEARCH_MEDICATIONS_BOT: Identifier;
|
|
52
|
+
|
|
53
|
+
export declare const DOSESPOT_SEARCH_PHARMACY_BOT: Identifier;
|
|
54
|
+
|
|
55
|
+
export declare interface DoseSpotNotificationCountsResponse {
|
|
56
|
+
PendingPrescriptionsCount: number;
|
|
57
|
+
PendingRxChangeCount: number;
|
|
58
|
+
RefillRequestsCount: number;
|
|
59
|
+
TransactionErrorsCount: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { getPreferredPharmaciesFromPatient }
|
|
63
|
+
|
|
64
|
+
export { isAddPharmacyResponse }
|
|
65
|
+
|
|
66
|
+
export { isOrganizationArray }
|
|
67
|
+
|
|
68
|
+
export declare const MEDPLUM_BOT_SYSTEM = "https://www.medplum.com/bots";
|
|
69
|
+
|
|
70
|
+
export { PATIENT_PREFERRED_PHARMACY_URL }
|
|
71
|
+
|
|
72
|
+
export { PHARMACY_PREFERENCE_TYPE_SYSTEM }
|
|
73
|
+
|
|
74
|
+
export { PHARMACY_TYPE_PREFERRED }
|
|
75
|
+
|
|
76
|
+
export { PHARMACY_TYPE_PRIMARY }
|
|
77
|
+
|
|
78
|
+
export { PharmacySearchParams }
|
|
79
|
+
|
|
80
|
+
export { PreferredPharmacy }
|
|
81
|
+
|
|
82
|
+
export { removePreferredPharmacyFromPatient }
|
|
83
|
+
|
|
84
|
+
export { }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{addPreferredPharmacyToPatient,createPreferredPharmacyExtension,getPreferredPharmaciesFromPatient,isAddPharmacyResponse,isOrganizationArray,PATIENT_PREFERRED_PHARMACY_URL,PHARMACY_PREFERENCE_TYPE_SYSTEM,PHARMACY_TYPE_PREFERRED,PHARMACY_TYPE_PRIMARY,removePreferredPharmacyFromPatient}from"@medplum/core";var DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM="https://dosespot.com/pharmacy-preference-type",MEDPLUM_BOT_SYSTEM="https://www.medplum.com/bots",DOSESPOT_PATIENT_ID_SYSTEM="https://dosespot.com/patient-id",DOSESPOT_PHARMACY_ID_SYSTEM="https://dosespot.com/pharmacy-id",DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM="https://dosespot.com/clinic-favorite-medication-id",DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM="https://dosespot.com/dispensable-drug-id",DOSESPOT_SEARCH_PHARMACY_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-search-pharmacy-bot"},DOSESPOT_ADD_PATIENT_PHARMACY_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-add-patient-pharmacy-bot"},DOSESPOT_PATIENT_SYNC_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-patient-sync-bot"},DOSESPOT_IFRAME_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-iframe-bot"},DOSESPOT_ADD_FAVORITE_MEDICATION_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-add-favorite-medication-bot"},DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-get-favorite-medications-bot"},DOSESPOT_SEARCH_MEDICATIONS_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-search-medication-bot"},DOSESPOT_MEDICATION_HISTORY_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-medication-history-bot"},DOSESPOT_PRESCRIPTIONS_SYNC_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-prescriptions-sync-bot"},DOSESPOT_NOTIFICATION_COUNTS_BOT={system:MEDPLUM_BOT_SYSTEM,value:"dosespot-notification-counts-bot"};export{DOSESPOT_ADD_FAVORITE_MEDICATION_BOT,DOSESPOT_ADD_PATIENT_PHARMACY_BOT,DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM,DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM,DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT,DOSESPOT_IFRAME_BOT,DOSESPOT_MEDICATION_HISTORY_BOT,DOSESPOT_NOTIFICATION_COUNTS_BOT,DOSESPOT_PATIENT_ID_SYSTEM,DOSESPOT_PATIENT_SYNC_BOT,DOSESPOT_PHARMACY_ID_SYSTEM,DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM,DOSESPOT_PRESCRIPTIONS_SYNC_BOT,DOSESPOT_SEARCH_MEDICATIONS_BOT,DOSESPOT_SEARCH_PHARMACY_BOT,MEDPLUM_BOT_SYSTEM,PATIENT_PREFERRED_PHARMACY_URL,PHARMACY_PREFERENCE_TYPE_SYSTEM,PHARMACY_TYPE_PREFERRED,PHARMACY_TYPE_PRIMARY,addPreferredPharmacyToPatient,createPreferredPharmacyExtension,getPreferredPharmaciesFromPatient,isAddPharmacyResponse,isOrganizationArray,removePreferredPharmacyFromPatient};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/pharmacy-utils.ts"],
|
|
4
|
+
"sourcesContent": ["// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Identifier } from '@medplum/fhirtypes';\n\n// DoseSpot-specific pharmacy preference type system\nexport const DOSESPOT_PHARMACY_PREFERENCE_TYPE_SYSTEM = 'https://dosespot.com/pharmacy-preference-type';\n\n// Re-export generic pharmacy utilities from @medplum/core\nexport {\n addPreferredPharmacyToPatient,\n createPreferredPharmacyExtension,\n getPreferredPharmaciesFromPatient,\n isAddPharmacyResponse,\n isOrganizationArray,\n PATIENT_PREFERRED_PHARMACY_URL,\n PHARMACY_PREFERENCE_TYPE_SYSTEM,\n PHARMACY_TYPE_PREFERRED,\n PHARMACY_TYPE_PRIMARY,\n removePreferredPharmacyFromPatient,\n} from '@medplum/core';\nexport type { AddFavoriteParams, AddPharmacyResponse, PharmacySearchParams, PreferredPharmacy } from '@medplum/core';\n\n// Bot system\nexport const MEDPLUM_BOT_SYSTEM = 'https://www.medplum.com/bots';\n\n// DoseSpot identifier systems\nexport const DOSESPOT_PATIENT_ID_SYSTEM = 'https://dosespot.com/patient-id';\nexport const DOSESPOT_PHARMACY_ID_SYSTEM = 'https://dosespot.com/pharmacy-id';\nexport const DOSESPOT_CLINIC_FAVORITE_ID_SYSTEM = 'https://dosespot.com/clinic-favorite-medication-id';\nexport const DOSESPOT_DISPENSABLE_DRUG_ID_SYSTEM = 'https://dosespot.com/dispensable-drug-id';\n\n// Bot identifiers - Pharmacy\nexport const DOSESPOT_SEARCH_PHARMACY_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-search-pharmacy-bot',\n};\n\nexport const DOSESPOT_ADD_PATIENT_PHARMACY_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-add-patient-pharmacy-bot',\n};\n\n// Bot identifiers - Patient and Medications\nexport const DOSESPOT_PATIENT_SYNC_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-patient-sync-bot',\n};\n\nexport const DOSESPOT_IFRAME_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-iframe-bot',\n};\n\nexport const DOSESPOT_ADD_FAVORITE_MEDICATION_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-add-favorite-medication-bot',\n};\n\nexport const DOSESPOT_GET_FAVORITE_MEDICATIONS_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-get-favorite-medications-bot',\n};\n\nexport const DOSESPOT_SEARCH_MEDICATIONS_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-search-medication-bot',\n};\n\nexport const DOSESPOT_MEDICATION_HISTORY_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-medication-history-bot',\n};\n\nexport const DOSESPOT_PRESCRIPTIONS_SYNC_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-prescriptions-sync-bot',\n};\n\nexport const DOSESPOT_NOTIFICATION_COUNTS_BOT: Identifier = {\n system: MEDPLUM_BOT_SYSTEM,\n value: 'dosespot-notification-counts-bot',\n};\n\n// DoseSpot notification response type\nexport interface DoseSpotNotificationCountsResponse {\n PendingPrescriptionsCount: number;\n PendingRxChangeCount: number;\n RefillRequestsCount: number;\n TransactionErrorsCount: number;\n}\n"],
|
|
5
|
+
"mappings": "AASA,OACE,8BACA,iCACA,kCACA,sBACA,oBACA,+BACA,gCACA,wBACA,sBACA,uCACK,gBAdA,IAAM,yCAA2C,gDAkB3C,mBAAqB,+BAGrB,2BAA6B,kCAC7B,4BAA8B,mCAC9B,mCAAqC,qDACrC,oCAAsC,2CAGtC,6BAA2C,CACtD,OAAQ,mBACR,MAAO,8BACT,EAEa,kCAAgD,CAC3D,OAAQ,mBACR,MAAO,mCACT,EAGa,0BAAwC,CACnD,OAAQ,mBACR,MAAO,2BACT,EAEa,oBAAkC,CAC7C,OAAQ,mBACR,MAAO,qBACT,EAEa,qCAAmD,CAC9D,OAAQ,mBACR,MAAO,sCACT,EAEa,sCAAoD,CAC/D,OAAQ,mBACR,MAAO,uCACT,EAEa,gCAA8C,CACzD,OAAQ,mBACR,MAAO,gCACT,EAEa,gCAA8C,CACzD,OAAQ,mBACR,MAAO,iCACT,EAEa,gCAA8C,CACzD,OAAQ,mBACR,MAAO,iCACT,EAEa,iCAA+C,CAC1D,OAAQ,mBACR,MAAO,kCACT",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type": "module"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@medplum/dosespot-core",
|
|
3
|
+
"version": "5.1.2",
|
|
4
|
+
"description": "Medplum DoseSpot SDK",
|
|
5
|
+
"homepage": "https://www.medplum.com/",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/medplum/medplum/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/medplum/medplum.git",
|
|
12
|
+
"directory": "packages/dosespot-core"
|
|
13
|
+
},
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
|
+
"author": "Medplum <hello@medplum.com>",
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/esm/index.d.ts",
|
|
21
|
+
"default": "./dist/esm/index.mjs"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/cjs/index.d.ts",
|
|
25
|
+
"default": "./dist/cjs/index.cjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"main": "dist/cjs/index.cjs",
|
|
29
|
+
"module": "dist/esm/index.mjs",
|
|
30
|
+
"types": "dist/esm/index.d.ts",
|
|
31
|
+
"files": [
|
|
32
|
+
"dist/cjs",
|
|
33
|
+
"dist/esm"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"api-extractor": "api-extractor run --local && shx cp dist/types.d.ts dist/cjs/index.d.ts && shx cp dist/types.d.ts dist/esm/index.d.ts",
|
|
37
|
+
"build": "npm run clean && tsc && node esbuild.mjs && npm run api-extractor",
|
|
38
|
+
"clean": "rimraf dist/{cjs,esm,types,types.d.ts}",
|
|
39
|
+
"lint": "eslint src/",
|
|
40
|
+
"lint:fix": "eslint src/ --fix",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:watch": "vitest watch"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@medplum/core": "5.1.2",
|
|
46
|
+
"@medplum/definitions": "5.1.2",
|
|
47
|
+
"@medplum/fhirtypes": "5.1.2",
|
|
48
|
+
"@medplum/mock": "5.1.2",
|
|
49
|
+
"@types/node": "22.19.13",
|
|
50
|
+
"vitest": "4.0.18"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@medplum/core": "5.1.2",
|
|
54
|
+
"@medplum/fhirtypes": "5.1.2"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": "^22.18.0 || >=24.2.0"
|
|
58
|
+
}
|
|
59
|
+
}
|