3 lines
588 KiB
JavaScript
3 lines
588 KiB
JavaScript
|
/*! For license information please see fhirpath.min.js.LICENSE.txt */
|
||
|
!function(){var e={6759:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ucum=void 0,t.Ucum={dimLen_:7,validOps_:[".","/"],codeSep_:": ",valMsgStart_:"Did you mean ",valMsgEnd_:"?",cnvMsgStart_:"We assumed you meant ",cnvMsgEnd_:".",openEmph_:" ->",closeEmph_:"<- ",openEmphHTML_:'<span class="emphSpan">',closeEmphHTML_:"</span>",bracesMsg_:"FYI - annotations (text in curly braces {}) are ignored, except that an annotation without a leading symbol implies the default unit 1 (the unity).",needMoleWeightMsg_:"Did you wish to convert between mass and moles? The molecular weight of the substance represented by the units is required to perform the conversion.",csvCols_:{"case-sensitive code":"csCode_","LOINC property":"loincProperty_","name (display)":"name_",synonyms:"synonyms_",source:"source_",category:"category_",Guidance:"guidance_"},inputKey_:"case-sensitive code",specUnits_:{"B[10.nV]":"specialUnitOne","[m/s2/Hz^(1/2)]":"specialUnitTwo"}}},9460:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function l(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,"string");if("object"!==r(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(l.key),"symbol"===r(i)?i:String(i)),l)}var i}t.R=void 0;var i=n(6759),a=n(1781),s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),0===i.Ucum.dimLen_)throw new Error("Dimension.setDimensionLen must be called before Dimension constructor");if(null==t)this.assignZero();else if(t instanceof Array){if(t.length!==i.Ucum.dimLen_)throw new Error("Parameter error, incorrect length of vector passed to "+"Dimension constructor, vector = ".concat(JSON.stringify(t)));this.dimVec_=[];for(var n=0;n<i.Ucum.dimLen_;n++)this.dimVec_.push(t[n])}else if(a(t)){if(t<0||t>=i.Ucum.dimLen_)throw new Error("Parameter error, invalid element number specified for Dimension constructor");this.assignZero(),this.dimVec_[t]=1}}var t,n;return t=e,(n=[{key:"setElementAt",value:function(e,t){if(!a(e)||e<0||e>=i.Ucum.dimLen_)throw new Error("Dimension.setElementAt called with an invalid index "+"position (".concat(e,")"));this.dimVec_||this.assignZero(),null==t&&(t=1),this.dimVec_[e]=t}},{key:"getElementAt",value:function(e){if(!a(e)||e<0||e>=i.Ucum.dimLen_)throw new Error("Dimension.getElementAt called with an invalid index "+"position (".concat(e,")"));var t=null;return this.dimVec_&&(t=this.dimVec_[e]),t}},{key:"getProperty",value:function(e){return this["_"===e.charAt(e.length-1)?e:e+"_"]}},{key:"toString",value:function(){var e=null;return this.dimVec_&&(e="["+this.dimVec_.join(", ")+"]"),e}},{key:"add",value:function(t){if(!t instanceof e)throw new Error("Dimension.add called with an invalid parameter - "+"".concat(r(t)," instead of a Dimension object"));if(this.dimVec_&&t.dimVec_)for(var n=0;n<i.Ucum.dimLen_;n++)this.dimVec_[n]+=t.dimVec_[n];return this}},{key:"sub",value:function(t){if(!t instanceof e)throw new Error("Dimension.sub called with an invalid parameter - "+"".concat(r(t)," instead of a Dimension object"));if(this.dimVec_&&t.dimVec_)for(var n=0;n<i.Ucum.dimLen_;n++)this.dimVec_[n]-=t.dimVec_[n];return this}},{key:"minus",value:function(){if(this.dimVec_)for(var e=0;e<i.Ucum.dimLen_;e++)this.dimVec_[e]=-this.dimVec_[e];return this}},{key:"mul",value:function(e){if(!a(e))throw new Error("Dimension.sub called with an invalid parameter - "+"".concat("undefined"==typeof dim2?"undefined":r(dim2)," instead of a number"));if(this.dimVec_)for(var t=0;t<i.Ucum.dimLen_;t++)this.dimVec_[t]*=e;return this}},{key:"equals",value:function(t){if(!t instanceo
|