oro-sdk 7.1.0 → 7.1.1-dev

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 ORO Health Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1322,7 +1322,7 @@ function _registerPatient() {
1322
1322
  ++currentStep;
1323
1323
  if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'store_patient_data');
1324
1324
  _context3.next = 38;
1325
- return storePatientData(consult.uuid, consultRequest.isoLanguageRequired, lockboxUuid, workflow, oroClient)["catch"](function (err) {
1325
+ return storePatientData(consult.uuid, consultRequest.isoLanguageRequired, lockboxUuid, workflow, oroClient, consult.consultType)["catch"](function (err) {
1326
1326
  console.error('[SDK: registration] Some errors happened during patient data upload', err);
1327
1327
  errorsThrown.push(err);
1328
1328
  });
@@ -1559,7 +1559,7 @@ function _storePatientData() {
1559
1559
  contentType: 'application/json'
1560
1560
  }, {})];
1561
1561
  _context6.t0 = consultType;
1562
- _context6.next = _context6.t0 === initApis.ConsultType.FollowUp ? 4 : _context6.t0 === initApis.ConsultType.Onboard ? 6 : _context6.t0 === initApis.ConsultType.Refill ? 6 : 7;
1562
+ _context6.next = _context6.t0 === initApis.ConsultType.FollowUp ? 4 : _context6.t0 === initApis.ConsultType.Onboard ? 6 : _context6.t0 === initApis.ConsultType.Refill ? 6 : 6;
1563
1563
  break;
1564
1564
  case 4:
1565
1565
  patientDataPromises.push(getWorkflowDataByCategory(workflow, initApis.MetadataCategory.Followup).then(function (data) {