kc-sdk 5.8.3850-rc → 5.8.3883-rc

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kc-sdk",
3
- "version": "5.8.3850-rc",
3
+ "version": "5.8.3883-rc",
4
4
  "description": "Knowledge Components SDK",
5
5
  "main": "",
6
6
  "publishConfig": {
package/src/kc-sdk.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var kcSdkVersion = "5.8.3850"
3
+ var kcSdkVersion = "5.8.3883"
4
4
 
5
5
  var kcSdk = function kcSdk() {
6
6
  // locals
@@ -37,7 +37,6 @@ var kcSdk = function kcSdk() {
37
37
  responseTime: responseTime,
38
38
  launch: launchKc,
39
39
  loadPatientRecord: loadPatientRecord,
40
- assignConfig: assignConfig,
41
40
  setAuthToken: setAuthToken,
42
41
  setI9I10State: setI9I10State,
43
42
  setDemographics: setDemographics,
@@ -238,17 +237,11 @@ var kcSdk = function kcSdk() {
238
237
  }
239
238
 
240
239
  function loadPatientRecord(patientRecord) {
241
- communicationPacket.action = 'loadPatientRecord';
240
+ communicationPacket.action = 'angularLoadPatientRecord';
242
241
  communicationPacket.value = patientRecord;
243
242
  communication(communicationPacket, listeningWindows.KC);
244
243
  }
245
244
 
246
- function assignConfig(input) {
247
- communicationPacket.action = 'assignConfig';
248
- communicationPacket.value = input;
249
- communication(communicationPacket, listeningWindows.KC);
250
- }
251
-
252
245
  function setI9I10State(state) {
253
246
  communicationPacket.action = 'setI9I10State';
254
247
  communicationPacket.value = state;
@@ -449,7 +442,7 @@ var kcSdk = function kcSdk() {
449
442
  // workflow functions
450
443
  function addToWorkflow(wf) {
451
444
  var wfArray = Array.isArray(wf) ? wf : [wf];
452
- var kcWindowFunctions = ['openKc', 'launchKc', 'loadPatientRecord', 'assignConfig'];
445
+ var kcWindowFunctions = ['openKc', 'launchKc', 'angularLoadPatientRecord'];
453
446
  var encoderWindowFunctions = ['openEncoder', 'launchEncoder', 'loadPhraseInLogic', 'loadPhraseInIndex', 'loadCodeInTabular'];
454
447
  var allWindowFunctions = ['setI9I10State', 'setAuthToken', 'setDemographics', 'closeAllKCWindows']
455
448
 
package/src/sdk-tester.js CHANGED
@@ -66,8 +66,6 @@ function testerController($scope, $timeout, $http, $q,
66
66
  }
67
67
  }
68
68
 
69
- vm.exampleUrl = 'http://www.google.com';
70
-
71
69
  vm.exampleDemographicsData = {
72
70
  sex: 'M',
73
71
  sendingFacility: "001",
@@ -268,15 +266,10 @@ function testerController($scope, $timeout, $http, $q,
268
266
  windowName: vm.encoderWindowName
269
267
  },
270
268
  {
271
- name: 'loadPatientRecord',
269
+ name: 'angularLoadPatientRecord',
272
270
  fn: kcSdk.kcWindow.loadPatientRecord,
273
271
  windowName: vm.kcWindowName
274
272
  },
275
- {
276
- name: 'assignConfig',
277
- fn: kcSdk.kcWindow.assignConfig,
278
- windowName: vm.kcWindowName
279
- },
280
273
  {
281
274
  name: 'setAuthToken',
282
275
  fn: kcSdk.kcWindow.setAuthToken,
@@ -351,12 +344,9 @@ function testerController($scope, $timeout, $http, $q,
351
344
  }
352
345
 
353
346
  switch (vm.availableApiSelected.name) {
354
- case 'loadPatientRecord':
347
+ case 'angularLoadPatientRecord':
355
348
  vm.workflowInput = angular.toJson(vm.examplePatientRecord, 2);
356
349
  break;
357
- case 'assignConfig':
358
- vm.workflowInput = angular.toJson({ rcpEndpointUri: vm.exampleUrl }, 2);
359
- break;
360
350
  case 'setAuthToken':
361
351
  vm.workflowInput = angular.toJson(vm.exampleAuthToken, 2);
362
352
  break;