@awell-health/awell-extensions 0.3.0 → 0.3.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.
Files changed (28) hide show
  1. package/dist/extensions/index.js +2 -0
  2. package/dist/extensions/index.js.map +1 -1
  3. package/dist/extensions/markdown.json +1 -1
  4. package/dist/extensions/metriport/actions/index.d.ts +2 -116
  5. package/dist/extensions/metriport/actions/index.js +0 -6
  6. package/dist/extensions/metriport/actions/index.js.map +1 -1
  7. package/dist/extensions/metriport/actions/patient/create.js +1 -1
  8. package/dist/extensions/metriport/actions/patient/fields.d.ts +2 -2
  9. package/dist/extensions/metriport/actions/patient/fields.js +3 -3
  10. package/dist/extensions/metriport/actions/patient/fields.js.map +1 -1
  11. package/dist/extensions/metriport/settings.js +2 -2
  12. package/dist/extensions/metriport/settings.js.map +1 -1
  13. package/package.json +1 -1
  14. package/dist/extensions/metriport/actions/link/create.d.ts +0 -11
  15. package/dist/extensions/metriport/actions/link/create.js +0 -39
  16. package/dist/extensions/metriport/actions/link/create.js.map +0 -1
  17. package/dist/extensions/metriport/actions/link/fields.d.ts +0 -70
  18. package/dist/extensions/metriport/actions/link/fields.js +0 -41
  19. package/dist/extensions/metriport/actions/link/fields.js.map +0 -1
  20. package/dist/extensions/metriport/actions/link/getAll.d.ts +0 -11
  21. package/dist/extensions/metriport/actions/link/getAll.js +0 -40
  22. package/dist/extensions/metriport/actions/link/getAll.js.map +0 -1
  23. package/dist/extensions/metriport/actions/link/remove.d.ts +0 -11
  24. package/dist/extensions/metriport/actions/link/remove.js +0 -39
  25. package/dist/extensions/metriport/actions/link/remove.js.map +0 -1
  26. package/dist/extensions/metriport/actions/link/validation.d.ts +0 -41
  27. package/dist/extensions/metriport/actions/link/validation.js +0 -26
  28. package/dist/extensions/metriport/actions/link/validation.js.map +0 -1
@@ -39,6 +39,7 @@ const math_1 = require("./math");
39
39
  const messagebird_1 = require("./messagebird");
40
40
  const metriport_1 = require("./metriport");
41
41
  const twilio_1 = require("./twilio");
42
+ const wellinks_1 = require("./wellinks");
42
43
  const json = __importStar(require("./markdown.json"));
43
44
  exports.markdown = json;
44
45
  exports.extensions = [
@@ -57,5 +58,6 @@ exports.extensions = [
57
58
  messagebird_1.MessageBird,
58
59
  metriport_1.Metriport,
59
60
  twilio_1.Twilio,
61
+ wellinks_1.Wellinks,
60
62
  ];
61
63
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,mCAA+B;AAC/B,2CAAuC;AACvC,6CAAyC;AACzC,+CAA2C;AAC3C,uCAAmC;AACnC,yCAAqC;AACrC,yCAAqC;AACrC,+CAA0C;AAC1C,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,+CAA2C;AAC3C,2CAAuC;AACvC,qCAAiC;AACjC,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,oFAAoF;IACpF,aAAK;IACL,qBAAS;IACT,uBAAU;IACV,yBAAW;IACX,iBAAO;IACP,mBAAQ;IACR,mBAAQ;IACR,wBAAU;IACV,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,qBAAS;IACT,eAAM;CACP,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,mCAA+B;AAC/B,2CAAuC;AACvC,6CAAyC;AACzC,+CAA2C;AAC3C,uCAAmC;AACnC,yCAAqC;AACrC,yCAAqC;AACrC,+CAA0C;AAC1C,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,+CAA2C;AAC3C,2CAAuC;AACvC,qCAAiC;AACjC,yCAAqC;AACrC,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,oFAAoF;IACpF,aAAK;IACL,qBAAS;IACT,uBAAU;IACV,yBAAW;IACX,iBAAO;IACP,mBAAQ;IACR,mBAAQ;IACR,wBAAU;IACV,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,qBAAS;IACT,eAAM;IACN,mBAAQ;CACT,CAAA"}
@@ -52,7 +52,7 @@
52
52
  "changelog": "# MessageBird changelog"
53
53
  },
54
54
  "metriport": {
55
- "readme": "# Metriport\n\nMetriport is Plaid for healthcare data. We help digital health companies access and manage patient health and medical data, through an open-source and universal API.\n\nThrough a single integration, our API enables modern health companies to get the comprehensive patient data they need from both HIEs and EHRs, as well as popular wearable devices.\n\nAs a developer-first interoperability solution, Metriport is powering the next wave of innovative companies, accelerating a revolution in digital health.\n\nTo learn more visit https://www.metriport.com/\n# Extension settings\n\nIn order to set up this extension, **you will need to provide a Metriport API key**. You can obtain an API key via the Metriport dashboard by selecting the `Developers tab`. To learn more on how to get started with Metriport visit our [quick start docs](https://docs.metriport.com/medical-api/getting-started/quickstart) for our Medical API. Also, to better understand how our API keys work check out the [API Keys section](https://docs.metriport.com/home/api-info/api-keys) of our docs as well.\n\n# Custom Actions\n\n**GENERAL NOTE: When providing a facilityId it must be the id of the facility the patient belongs to.**\n\n## Create patient\n\nCreates a Patient in Metriport for the specified Facility where the patient is receiving care.\n\n## Update patient\n\nUpdates the specified Patient.\n\n## Get patient\n\nRetrieves the specified Patient.\n\n## Remove patient\n\nRemoves a patient at Metriport and at HIEs the patient is linked to.\n\n## Get all links\n\nBuilds and returns the current state of a patient's links across HIEs.\n\n## Create link\n\nCreates link between a patient at Metriport and an entity (person/patient) on an HIE (medical data source).\n\n## Remove link\n\nRemoves a link between a patient at Metriport and an entity (person/patient) on an HIE (medical data source).\n\n## List documents\n\nLists all Documents that can be retrieved for a Patient.\n\n**NOTE: It also returns the status of querying document references across HIEs, indicating whether there is an asynchronous query in progress (status processing) or not (status completed). If the query is in progress, you will also receive the total number of documents to be queried as well as the ones that have already been completed.**\n\n## Query documents\n\nTriggers a document query for the specified patient across HIEs.\n\n**NOTE: When executed, this endpoint triggers an asynchronous document query with HIEs and immediately returns the status of document query, processing .**\n\n## Get document url\n\nGets a presigned URL for downloading the specified document.\n\n**NOTE: This endpoint returns a URL which you can use to download the specified document using the file name provided from the List Documents endpoint.**\n\n## More Info\n\nFor more information on how to integrate with Metriport please visit our [Medical API docs](https://docs.metriport.com/medical-api/getting-started/quickstart)\n",
55
+ "readme": "# Metriport\n\nMetriport is Plaid for healthcare data. We help digital health companies access and manage patient health and medical data, through an open-source and universal API.\n\nThrough a single integration, our API enables modern health companies to get the comprehensive patient data they need from both HIEs and EHRs, as well as popular wearable devices.\n\nAs a developer-first interoperability solution, Metriport is powering the next wave of innovative companies, accelerating a revolution in digital health.\n\nTo learn more visit [https://www.metriport.com/](https://www.metriport.com/)\n# Extension settings\n\nIn order to set up this extension, **you will need to provide a Metriport API key**. You can obtain an API key via the Metriport dashboard by selecting the `Developers tab`. To learn more on how to get started with Metriport visit our [quick start docs](https://docs.metriport.com/medical-api/getting-started/quickstart) for our Medical API. Also, to better understand how our API keys work check out the [API Keys section](https://docs.metriport.com/home/api-info/api-keys) of our docs as well.\n\n# Custom Actions\n\n**GENERAL NOTE: Make sure to create Organizations and Facilities in Metriport before using this extension. A Patient must be associated with a Facility by providing the facilityId when stated in the actions.**\n\n## Create Patient\n\nCreates a Patient in Metriport for the specified Facility where the Patient is receiving care.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/create-patient) for more info.\n\n## Update Patient\n\nUpdates the specified Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/update-patient) for more info.\n\n## Get Patient\n\nRetrieves the specified Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/get-patient) for more info.\n\n## Remove Patient\n\nRemoves a Patient at Metriport and at HIEs the Patient is linked to.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/delete-patient) for more info.\n\n## List Documents\n\nLists all Documents that can be retrieved for a Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/list-documents) for more info.\n\n**NOTE: It also returns the status of querying Document references across HIEs, indicating whether there is an asynchronous query in progress (status processing) or not (status completed). If the query is in progress, you will also receive the total number of Documents to be queried as well as the ones that have already been completed.**\n\n## Query Documents\n\nTriggers a Document query for the specified Patient across HIEs.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/start-document-query) for more info.\n\n**NOTE: When executed, this endpoint triggers an asynchronous Document query with HIEs and immediately returns the status of Document query, processing .**\n\n## Get Document Url\n\nGets a presigned URL for downloading the specified Document.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/get-document) for more info.\n\n**NOTE: This endpoint returns a URL which you can use to download the specified Document using the file name provided from the List Documents endpoint.**\n\n## More Info\n\nFor more information on how to integrate with Metriport please visit our [Medical API docs](https://docs.metriport.com/medical-api/getting-started/quickstart)\n",
56
56
  "changelog": "# Metriport changelog"
57
57
  },
58
58
  "twilio": {
@@ -28,7 +28,7 @@ export declare const actions: {
28
28
  id: string;
29
29
  label: string;
30
30
  description: string;
31
- type: import("../../../lib/types").FieldType.NUMERIC;
31
+ type: import("../../../lib/types").FieldType.STRING;
32
32
  };
33
33
  email: {
34
34
  id: string;
@@ -145,7 +145,7 @@ export declare const actions: {
145
145
  id: string;
146
146
  label: string;
147
147
  description: string;
148
- type: import("../../../lib/types").FieldType.NUMERIC;
148
+ type: import("../../../lib/types").FieldType.STRING;
149
149
  };
150
150
  email: {
151
151
  id: string;
@@ -295,120 +295,6 @@ export declare const actions: {
295
295
  required: false;
296
296
  };
297
297
  }, string>;
298
- getAllLinks: import("../../../lib/types").Action<{
299
- patientId: {
300
- id: string;
301
- label: string;
302
- description: string;
303
- type: import("../../../lib/types").FieldType.STRING;
304
- required: true;
305
- };
306
- facilityId: {
307
- id: string;
308
- label: string;
309
- description: string;
310
- type: import("../../../lib/types").FieldType.STRING;
311
- required: true;
312
- };
313
- }, {
314
- apiKey: {
315
- key: string;
316
- label: string;
317
- obfuscated: true;
318
- description: string;
319
- required: true;
320
- };
321
- baseUrl: {
322
- key: string;
323
- label: string;
324
- obfuscated: false;
325
- description: string;
326
- required: false;
327
- };
328
- }, "patientId">;
329
- createLink: import("../../../lib/types").Action<{
330
- entityId: {
331
- id: string;
332
- label: string;
333
- description: string;
334
- type: import("../../../lib/types").FieldType.STRING;
335
- required: true;
336
- };
337
- linkSource: {
338
- id: string;
339
- label: string;
340
- description: string;
341
- type: import("../../../lib/types").FieldType.STRING;
342
- required: true;
343
- };
344
- patientId: {
345
- id: string;
346
- label: string;
347
- description: string;
348
- type: import("../../../lib/types").FieldType.STRING;
349
- required: true;
350
- };
351
- facilityId: {
352
- id: string;
353
- label: string;
354
- description: string;
355
- type: import("../../../lib/types").FieldType.STRING;
356
- required: true;
357
- };
358
- }, {
359
- apiKey: {
360
- key: string;
361
- label: string;
362
- obfuscated: true;
363
- description: string;
364
- required: true;
365
- };
366
- baseUrl: {
367
- key: string;
368
- label: string;
369
- obfuscated: false;
370
- description: string;
371
- required: false;
372
- };
373
- }, "patientId">;
374
- removeLink: import("../../../lib/types").Action<{
375
- linkSource: {
376
- id: string;
377
- label: string;
378
- description: string;
379
- type: import("../../../lib/types").FieldType.STRING;
380
- required: true;
381
- };
382
- patientId: {
383
- id: string;
384
- label: string;
385
- description: string;
386
- type: import("../../../lib/types").FieldType.STRING;
387
- required: true;
388
- };
389
- facilityId: {
390
- id: string;
391
- label: string;
392
- description: string;
393
- type: import("../../../lib/types").FieldType.STRING;
394
- required: true;
395
- };
396
- }, {
397
- apiKey: {
398
- key: string;
399
- label: string;
400
- obfuscated: true;
401
- description: string;
402
- required: true;
403
- };
404
- baseUrl: {
405
- key: string;
406
- label: string;
407
- obfuscated: false;
408
- description: string;
409
- required: false;
410
- };
411
- }, "patientId">;
412
298
  listDocuments: import("../../../lib/types").Action<{
413
299
  patientId: {
414
300
  id: string;
@@ -5,9 +5,6 @@ const get_1 = require("./patient/get");
5
5
  const update_1 = require("./patient/update");
6
6
  const create_1 = require("./patient/create");
7
7
  const delete_1 = require("./patient/delete");
8
- const getAll_1 = require("./link/getAll");
9
- const create_2 = require("./link/create");
10
- const remove_1 = require("./link/remove");
11
8
  const list_1 = require("./document/list");
12
9
  const query_1 = require("./document/query");
13
10
  const getUrl_1 = require("./document/getUrl");
@@ -16,9 +13,6 @@ exports.actions = {
16
13
  createPatient: create_1.createPatient,
17
14
  updatePatient: update_1.updatePatient,
18
15
  deletePatient: delete_1.deletePatient,
19
- getAllLinks: getAll_1.getAllLinks,
20
- createLink: create_2.createLink,
21
- removeLink: remove_1.removeLink,
22
16
  listDocuments: list_1.listDocuments,
23
17
  queryDocs: query_1.queryDocs,
24
18
  getUrl: getUrl_1.getUrl,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/metriport/actions/index.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAC1C,6CAAgD;AAChD,6CAAgD;AAChD,6CAAgD;AAChD,0CAA2C;AAC3C,0CAA0C;AAC1C,0CAA0C;AAC1C,0CAA+C;AAC/C,4CAA4C;AAC5C,8CAA0C;AAE7B,QAAA,OAAO,GAAG;IACrB,UAAU,EAAV,gBAAU;IACV,aAAa,EAAb,sBAAa;IACb,aAAa,EAAb,sBAAa;IACb,aAAa,EAAb,sBAAa;IACb,WAAW,EAAX,oBAAW;IACX,UAAU,EAAV,mBAAU;IACV,UAAU,EAAV,mBAAU;IACV,aAAa,EAAb,oBAAa;IACb,SAAS,EAAT,iBAAS;IACT,MAAM,EAAN,eAAM;CACP,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/metriport/actions/index.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAC1C,6CAAgD;AAChD,6CAAgD;AAChD,6CAAgD;AAChD,0CAA+C;AAC/C,4CAA4C;AAC5C,8CAA0C;AAE7B,QAAA,OAAO,GAAG;IACrB,UAAU,EAAV,gBAAU;IACV,aAAa,EAAb,sBAAa;IACb,aAAa,EAAb,sBAAa;IACb,aAAa,EAAb,sBAAa;IACb,aAAa,EAAb,oBAAa;IACb,SAAS,EAAT,iBAAS;IACT,MAAM,EAAN,eAAM;CACP,CAAA"}
@@ -14,7 +14,7 @@ exports.createPatient = {
14
14
  key: 'createPatient',
15
15
  category: marketplace_1.Category.EHR_INTEGRATIONS,
16
16
  title: 'Create Patient',
17
- description: 'Creates a Patient in Metriport for the specified Facility where the patient is receiving care.',
17
+ description: 'Creates a Patient in Metriport for the specified Facility where the Patient is receiving care.',
18
18
  fields: fields_1.createFields,
19
19
  previewable: true,
20
20
  dataPoints: dataPoints_1.patientIdDataPoint,
@@ -4,7 +4,7 @@ export declare const createFields: {
4
4
  id: string;
5
5
  label: string;
6
6
  description: string;
7
- type: FieldType.NUMERIC;
7
+ type: FieldType.STRING;
8
8
  };
9
9
  email: {
10
10
  id: string;
@@ -106,7 +106,7 @@ export declare const updateFields: {
106
106
  id: string;
107
107
  label: string;
108
108
  description: string;
109
- type: FieldType.NUMERIC;
109
+ type: FieldType.STRING;
110
110
  };
111
111
  email: {
112
112
  id: string;
@@ -56,7 +56,7 @@ exports.createFields = {
56
56
  id: 'phone',
57
57
  label: 'Phone',
58
58
  description: `The Patient's 10 digit phone number, formatted 1234567899`,
59
- type: types_1.FieldType.NUMERIC,
59
+ type: types_1.FieldType.STRING,
60
60
  },
61
61
  email: {
62
62
  id: 'email',
@@ -69,7 +69,7 @@ exports.updateFields = {
69
69
  id: {
70
70
  id: 'id',
71
71
  label: 'Patient ID',
72
- description: 'The ID of the patient to update',
72
+ description: 'The ID of the Patient to update',
73
73
  type: types_1.FieldType.STRING,
74
74
  required: true,
75
75
  },
@@ -79,7 +79,7 @@ exports.getFields = {
79
79
  patientId: {
80
80
  id: 'patientId',
81
81
  label: 'Patient ID',
82
- description: 'The patient ID',
82
+ description: 'The Patient ID',
83
83
  type: types_1.FieldType.STRING,
84
84
  required: true,
85
85
  },
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/patient/fields.ts"],"names":[],"mappings":";;;AAAA,iDAA6D;AAC7D,gDAA6C;AAEhC,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,iDAAiD;QAC9D,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,EAAE;QACH,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,qDAAqD;QAClE,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,mBAAmB,EAAE;QACnB,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,iBAAS,CAAC,MAAM;KACvB;IACD,mBAAmB,EAAE;QACnB,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EAAE,sEAAsE;QACnF,IAAI,EAAE,iBAAS,CAAC,MAAM;KACvB;IACD,GAAG,gBAAO;IACV,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,2DAA2D;QACxE,IAAI,EAAE,iBAAS,CAAC,OAAO;KACxB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,iBAAS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,oBAAY;CACgB,CAAA;AAEpB,QAAA,SAAS,GAAG;IACvB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,GAAG,iBAAS;IACZ,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA"}
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/patient/fields.ts"],"names":[],"mappings":";;;AAAA,iDAA6D;AAC7D,gDAA6C;AAEhC,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,iDAAiD;QAC9D,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,EAAE;QACH,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,qDAAqD;QAClE,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,mBAAmB,EAAE;QACnB,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,iBAAS,CAAC,MAAM;KACvB;IACD,mBAAmB,EAAE;QACnB,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EAAE,sEAAsE;QACnF,IAAI,EAAE,iBAAS,CAAC,MAAM;KACvB;IACD,GAAG,gBAAO;IACV,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,2DAA2D;QACxE,IAAI,EAAE,iBAAS,CAAC,MAAM;KACvB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,iBAAS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,oBAAY;CACgB,CAAA;AAEpB,QAAA,SAAS,GAAG;IACvB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,GAAG,iBAAS;IACZ,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA"}
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.settings = void 0;
4
4
  exports.settings = {
5
5
  apiKey: {
6
- key: 'api_key',
6
+ key: 'apiKey',
7
7
  label: 'API Key',
8
8
  obfuscated: true,
9
9
  description: 'The API Key for the Metriport Medical API.',
10
10
  required: true,
11
11
  },
12
12
  baseUrl: {
13
- key: 'base_url',
13
+ key: 'baseUrl',
14
14
  label: 'Base URL',
15
15
  obfuscated: false,
16
16
  description: 'The base URL of the Metriport Medical API.',
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/metriport/settings.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,UAAU;QACjB,UAAU,EAAE,KAAK;QACjB,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,KAAK;KAChB;CACgC,CAAA"}
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/metriport/settings.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,UAAU;QACjB,UAAU,EAAE,KAAK;QACjB,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,KAAK;KAChB;CACgC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -1,11 +0,0 @@
1
- import { type Action } from '../../../../lib/types';
2
- import { type settings } from '../../settings';
3
- import { createFields } from './fields';
4
- declare const dataPoints: {
5
- patientId: {
6
- key: string;
7
- valueType: "string";
8
- };
9
- };
10
- export declare const createLink: Action<typeof createFields, typeof settings, keyof typeof dataPoints>;
11
- export {};
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createLink = void 0;
4
- const marketplace_1 = require("../../../../lib/types/marketplace");
5
- const client_1 = require("../../client");
6
- const errorHandler_1 = require("../../shared/errorHandler");
7
- const fields_1 = require("./fields");
8
- const validation_1 = require("./validation");
9
- const dataPoints = {
10
- patientId: {
11
- key: 'patientId',
12
- valueType: 'string',
13
- },
14
- };
15
- exports.createLink = {
16
- key: 'createLink',
17
- category: marketplace_1.Category.EHR_INTEGRATIONS,
18
- title: 'Create Link',
19
- description: "Create an link using Metriport's API.",
20
- fields: fields_1.createFields,
21
- previewable: true,
22
- dataPoints,
23
- onActivityCreated: async (payload, onComplete, onError) => {
24
- try {
25
- const { patientId, linkSource, facilityId, entityId } = validation_1.linkCreateSchema.parse(payload.fields);
26
- const api = (0, client_1.createMetriportApi)(payload.settings);
27
- await api.createLink(patientId, facilityId, entityId, linkSource);
28
- await onComplete({
29
- data_points: {
30
- patientId: String(patientId),
31
- },
32
- });
33
- }
34
- catch (err) {
35
- await (0, errorHandler_1.handleErrorMessage)(err, onError);
36
- }
37
- },
38
- };
39
- //# sourceMappingURL=create.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/link/create.ts"],"names":[],"mappings":";;;AACA,mEAA4D;AAE5D,yCAAiD;AACjD,4DAA8D;AAC9D,qCAAuC;AACvC,6CAA+C;AAE/C,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,UAAU,GAInB;IACF,GAAG,EAAE,YAAY;IACjB,QAAQ,EAAE,sBAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,qBAAY;IACpB,WAAW,EAAE,IAAI;IACjB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,IAAI;YACF,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,GACnD,6BAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;YAExC,MAAM,GAAG,GAAG,IAAA,2BAAkB,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;YAEhD,MAAM,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAA;YAEjE,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;iBAC7B;aACF,CAAC,CAAA;SACH;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,IAAA,iCAAkB,EAAC,GAAG,EAAE,OAAO,CAAC,CAAA;SACvC;IACH,CAAC;CACF,CAAA"}
@@ -1,70 +0,0 @@
1
- import { FieldType } from '../../../../lib/types';
2
- export declare const getAllFields: {
3
- patientId: {
4
- id: string;
5
- label: string;
6
- description: string;
7
- type: FieldType.STRING;
8
- required: true;
9
- };
10
- facilityId: {
11
- id: string;
12
- label: string;
13
- description: string;
14
- type: FieldType.STRING;
15
- required: true;
16
- };
17
- };
18
- export declare const removeFields: {
19
- linkSource: {
20
- id: string;
21
- label: string;
22
- description: string;
23
- type: FieldType.STRING;
24
- required: true;
25
- };
26
- patientId: {
27
- id: string;
28
- label: string;
29
- description: string;
30
- type: FieldType.STRING;
31
- required: true;
32
- };
33
- facilityId: {
34
- id: string;
35
- label: string;
36
- description: string;
37
- type: FieldType.STRING;
38
- required: true;
39
- };
40
- };
41
- export declare const createFields: {
42
- entityId: {
43
- id: string;
44
- label: string;
45
- description: string;
46
- type: FieldType.STRING;
47
- required: true;
48
- };
49
- linkSource: {
50
- id: string;
51
- label: string;
52
- description: string;
53
- type: FieldType.STRING;
54
- required: true;
55
- };
56
- patientId: {
57
- id: string;
58
- label: string;
59
- description: string;
60
- type: FieldType.STRING;
61
- required: true;
62
- };
63
- facilityId: {
64
- id: string;
65
- label: string;
66
- description: string;
67
- type: FieldType.STRING;
68
- required: true;
69
- };
70
- };
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFields = exports.removeFields = exports.getAllFields = void 0;
4
- const types_1 = require("../../../../lib/types");
5
- exports.getAllFields = {
6
- patientId: {
7
- id: 'patientId',
8
- label: 'Patient ID',
9
- description: 'The ID of the Patient that will be linked to the entity in the HIE',
10
- type: types_1.FieldType.STRING,
11
- required: true,
12
- },
13
- facilityId: {
14
- id: 'facilityId',
15
- label: 'Facility ID',
16
- description: 'The ID of the Facility that is currently providing the Patient care',
17
- type: types_1.FieldType.STRING,
18
- required: true,
19
- },
20
- };
21
- exports.removeFields = {
22
- ...exports.getAllFields,
23
- linkSource: {
24
- id: 'linkSource',
25
- label: 'Link Source',
26
- description: 'The HIE to link to - currently COMMONWELL is supported',
27
- type: types_1.FieldType.STRING,
28
- required: true,
29
- },
30
- };
31
- exports.createFields = {
32
- ...exports.removeFields,
33
- entityId: {
34
- id: 'entityId',
35
- label: 'Entity ID',
36
- description: 'The ID of the entity in the HIE to link the Patient to',
37
- type: types_1.FieldType.STRING,
38
- required: true,
39
- },
40
- };
41
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/link/fields.ts"],"names":[],"mappings":";;;AAAA,iDAA6D;AAEhD,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,oEAAoE;QACtE,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,qEAAqE;QACvE,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,GAAG,oBAAY;IACf,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,GAAG,oBAAY;IACf,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,iBAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA"}
@@ -1,11 +0,0 @@
1
- import { type Action } from '../../../../lib/types';
2
- import { type settings } from '../../settings';
3
- import { getAllFields } from './fields';
4
- declare const dataPoints: {
5
- patientId: {
6
- key: string;
7
- valueType: "string";
8
- };
9
- };
10
- export declare const getAllLinks: Action<typeof getAllFields, typeof settings, keyof typeof dataPoints>;
11
- export {};
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAllLinks = void 0;
4
- const marketplace_1 = require("../../../../lib/types/marketplace");
5
- const client_1 = require("../../client");
6
- const errorHandler_1 = require("../../shared/errorHandler");
7
- const fields_1 = require("./fields");
8
- const validation_1 = require("./validation");
9
- // NEED TO SEE WHILE TESTING
10
- const dataPoints = {
11
- patientId: {
12
- key: 'patientId',
13
- valueType: 'string',
14
- },
15
- };
16
- exports.getAllLinks = {
17
- key: 'getAllLinks',
18
- category: marketplace_1.Category.EHR_INTEGRATIONS,
19
- title: 'Get All Links',
20
- description: "Get all links using Metriport's API.",
21
- fields: fields_1.getAllFields,
22
- previewable: true,
23
- dataPoints,
24
- onActivityCreated: async (payload, onComplete, onError) => {
25
- try {
26
- const { patientId, facilityId } = validation_1.getAllLinksSchema.parse(payload.fields);
27
- const api = (0, client_1.createMetriportApi)(payload.settings);
28
- await api.listLinks(patientId, facilityId);
29
- await onComplete({
30
- data_points: {
31
- patientId: String(patientId),
32
- },
33
- });
34
- }
35
- catch (err) {
36
- await (0, errorHandler_1.handleErrorMessage)(err, onError);
37
- }
38
- },
39
- };
40
- //# sourceMappingURL=getAll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/link/getAll.ts"],"names":[],"mappings":";;;AACA,mEAA4D;AAE5D,yCAAiD;AACjD,4DAA8D;AAC9D,qCAAuC;AACvC,6CAAgD;AAEhD,4BAA4B;AAC5B,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAIpB;IACF,GAAG,EAAE,aAAa;IAClB,QAAQ,EAAE,sBAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,qBAAY;IACpB,WAAW,EAAE,IAAI;IACjB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,IAAI;YACF,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,8BAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;YAEzE,MAAM,GAAG,GAAG,IAAA,2BAAkB,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;YAEhD,MAAM,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;YAE1C,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;iBAC7B;aACF,CAAC,CAAA;SACH;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,IAAA,iCAAkB,EAAC,GAAG,EAAE,OAAO,CAAC,CAAA;SACvC;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +0,0 @@
1
- import { type Action } from '../../../../lib/types';
2
- import { type settings } from '../../settings';
3
- import { removeFields } from './fields';
4
- declare const dataPoints: {
5
- patientId: {
6
- key: string;
7
- valueType: "string";
8
- };
9
- };
10
- export declare const removeLink: Action<typeof removeFields, typeof settings, keyof typeof dataPoints>;
11
- export {};
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeLink = void 0;
4
- const marketplace_1 = require("../../../../lib/types/marketplace");
5
- const client_1 = require("../../client");
6
- const errorHandler_1 = require("../../shared/errorHandler");
7
- const fields_1 = require("./fields");
8
- const validation_1 = require("./validation");
9
- const dataPoints = {
10
- patientId: {
11
- key: 'patientId',
12
- valueType: 'string',
13
- },
14
- };
15
- exports.removeLink = {
16
- key: 'removeLink',
17
- category: marketplace_1.Category.EHR_INTEGRATIONS,
18
- title: 'Remove Link',
19
- description: "Remove an link using Metriport's API.",
20
- fields: fields_1.removeFields,
21
- previewable: true,
22
- dataPoints,
23
- onActivityCreated: async (payload, onComplete, onError) => {
24
- try {
25
- const { patientId, linkSource, facilityId } = validation_1.linkRemoveSchema.parse(payload.fields);
26
- const api = (0, client_1.createMetriportApi)(payload.settings);
27
- await api.removeLink(patientId, facilityId, linkSource);
28
- await onComplete({
29
- data_points: {
30
- patientId: String(patientId),
31
- },
32
- });
33
- }
34
- catch (err) {
35
- await (0, errorHandler_1.handleErrorMessage)(err, onError);
36
- }
37
- },
38
- };
39
- //# sourceMappingURL=remove.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/link/remove.ts"],"names":[],"mappings":";;;AACA,mEAA4D;AAE5D,yCAAiD;AACjD,4DAA8D;AAC9D,qCAAuC;AACvC,6CAA+C;AAE/C,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,UAAU,GAInB;IACF,GAAG,EAAE,YAAY;IACjB,QAAQ,EAAE,sBAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,qBAAY;IACpB,WAAW,EAAE,IAAI;IACjB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,IAAI;YACF,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,6BAAgB,CAAC,KAAK,CAClE,OAAO,CAAC,MAAM,CACf,CAAA;YAED,MAAM,GAAG,GAAG,IAAA,2BAAkB,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;YAEhD,MAAM,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAA;YAEvD,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;iBAC7B;aACF,CAAC,CAAA;SACH;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,IAAA,iCAAkB,EAAC,GAAG,EAAE,OAAO,CAAC,CAAA;SACvC;IACH,CAAC;CACF,CAAA"}
@@ -1,41 +0,0 @@
1
- import { z } from 'zod';
2
- import { MedicalDataSource } from '@metriport/api';
3
- export declare const getAllLinksSchema: z.ZodObject<{
4
- patientId: z.ZodString;
5
- facilityId: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- patientId: string;
8
- facilityId: string;
9
- }, {
10
- patientId: string;
11
- facilityId: string;
12
- }>;
13
- export declare const linkRemoveSchema: z.ZodObject<{
14
- linkSource: z.ZodNativeEnum<typeof MedicalDataSource>;
15
- patientId: z.ZodString;
16
- facilityId: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- patientId: string;
19
- facilityId: string;
20
- linkSource: MedicalDataSource;
21
- }, {
22
- patientId: string;
23
- facilityId: string;
24
- linkSource: MedicalDataSource;
25
- }>;
26
- export declare const linkCreateSchema: z.ZodObject<{
27
- entityId: z.ZodString;
28
- linkSource: z.ZodNativeEnum<typeof MedicalDataSource>;
29
- patientId: z.ZodString;
30
- facilityId: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- patientId: string;
33
- entityId: string;
34
- facilityId: string;
35
- linkSource: MedicalDataSource;
36
- }, {
37
- patientId: string;
38
- entityId: string;
39
- facilityId: string;
40
- linkSource: MedicalDataSource;
41
- }>;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.linkCreateSchema = exports.linkRemoveSchema = exports.getAllLinksSchema = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("@metriport/api");
6
- exports.getAllLinksSchema = zod_1.z.object({
7
- patientId: zod_1.z
8
- .string({ errorMap: () => ({ message: 'Missing patientId' }) })
9
- .min(1),
10
- facilityId: zod_1.z
11
- .string({ errorMap: () => ({ message: 'Missing facilityId' }) })
12
- .min(1),
13
- });
14
- exports.linkRemoveSchema = zod_1.z
15
- .object({
16
- linkSource: zod_1.z.nativeEnum(api_1.MedicalDataSource),
17
- })
18
- .merge(exports.getAllLinksSchema);
19
- exports.linkCreateSchema = zod_1.z
20
- .object({
21
- entityId: zod_1.z
22
- .string({ errorMap: () => ({ message: 'Missing entityId' }) })
23
- .min(1),
24
- })
25
- .merge(exports.linkRemoveSchema);
26
- //# sourceMappingURL=validation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/link/validation.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,wCAAkD;AAErC,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,EAAE,CAAC;SAC9D,GAAG,CAAC,CAAC,CAAC;IACT,UAAU,EAAE,OAAC;SACV,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC,EAAE,CAAC;SAC/D,GAAG,CAAC,CAAC,CAAC;CACV,CAAC,CAAA;AAEW,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,CAAC;IACN,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,uBAAiB,CAAC;CAC5C,CAAC;KACD,KAAK,CAAC,yBAAiB,CAAC,CAAA;AAEd,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,CAAC;IACN,QAAQ,EAAE,OAAC;SACR,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC,EAAE,CAAC;SAC7D,GAAG,CAAC,CAAC,CAAC;CACV,CAAC;KACD,KAAK,CAAC,wBAAgB,CAAC,CAAA"}