@eka-care/medical-records-ui 1.2.49 → 1.2.51

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/index.js CHANGED
@@ -908,8 +908,8 @@ function isEkaPrescription(typeCode) {
908
908
  return _optionalChain([typeCode, 'optionalAccess', _8 => _8.toLowerCase, 'call', _9 => _9()]) === EKA_PRESCRIPTION_TYPE;
909
909
  }
910
910
  function sourceLabelOf(typeCode, source) {
911
- if (!isEkaPrescription(typeCode)) return null;
912
- return _optionalChain([source, 'optionalAccess', _10 => _10.toLowerCase, 'call', _11 => _11()]) === SCRIBE_SOURCE ? "EkaScribe" : "Eka EMR";
911
+ if (_optionalChain([source, 'optionalAccess', _10 => _10.toLowerCase, 'call', _11 => _11()]) === SCRIBE_SOURCE) return "EkaScribe";
912
+ return isEkaPrescription(typeCode) ? "Eka EMR" : null;
913
913
  }
914
914
  function smartLabelOf(typeCode, isSmart) {
915
915
  if (isEkaPrescription(typeCode)) return "Smart Record";