We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2fb1aa commit 936a50eCopy full SHA for 936a50e
static/ips/assets/js/renderIPS.js
@@ -40,7 +40,7 @@ $(document).ready(function () {
40
});
41
42
}
43
-
+
44
$('#FhirDropdown').on('click', () => updateDisplayMode('Entries'));
45
$('#NarrativeDropdown').on('click', () => updateDisplayMode('Text'));
46
@@ -274,6 +274,18 @@ const update = function (ips) {
274
console.log(immunization.reference);
275
section.immunizations.push(getEntry(ips, immunization.reference));
276
277
+ section.immunizations.sort((a, b) => {
278
+ let fa = a.occurrenceDateTime,
279
+ fb = b.occurrenceDateTime;
280
281
+ if (fa < fb) {
282
+ return -1;
283
+ }
284
+ if (fa > fb) {
285
+ return 1;
286
287
+ return 0;
288
+ });
289
render("Immunizations", section, "Immunizations");
290
291
else if (section.code.coding[0].code == "30954-2") {
0 commit comments