app/assets/javascripts/patient_api_extension.js.coffee in hqmf2js-1.2.0 vs app/assets/javascripts/patient_api_extension.js.coffee in hqmf2js-1.2.1

- old
+ new

@@ -16,9 +16,13 @@ hQuery.CodedEntry::asTS = -> ts = new TS() ts.date = this.timeStamp() ts +hQuery.Encounter::lengthOfStay = (unit) -> + ivl_ts = this.asIVL_TS() + ivl_ts.low.difference(ivl_ts.high, unit) + hQuery.CodedEntry::respondTo = (functionName) -> typeof(@[functionName]) == "function" hQuery.CodedEntryList::isTrue = -> @length != 0