healthone
Version:
Health One format library for JavaScript
1 lines • 1.41 kB
Source Map (JSON)
{"version":3,"file":"stringifyA4.cjs","names":["stringifyA4","record","options","reference","requestor","datetime","status","date","stringifyDate","time","stringifyTime","statusString","stringifyStatus","parts","trailing","A4","push"],"sources":["../../src/stringifyA4.js"],"sourcesContent":["import stringifyDate from './stringifyDate.js';\nimport stringifyTime from './stringifyTime.js';\nimport stringifyStatus from './stringifyStatus.js';\n\nexport default function stringifyA4(record, options) {\n\tconst {reference, requestor, datetime, status} = record;\n\n\tconst date = stringifyDate(datetime, options);\n\tconst time = stringifyTime(datetime, options);\n\tconst statusString = stringifyStatus(status, options);\n\n\tconst parts = ['A4', reference, requestor, date, time, statusString];\n\n\tif (options.trailing.A4) parts.push('');\n\n\treturn parts;\n}\n"],"mappings":"kYAIe,QAAS,CAAAA,WAAWA,CAACC,CAAM,CAAEC,CAAO,CAAE,MAC9C,CAACC,SAAS,CAATA,CAAS,CAAEC,SAAS,CAATA,CAAS,CAAEC,QAAQ,CAARA,CAAQ,CAAEC,MAAM,CAANA,CAAM,CAAC,CAAGL,CAAM,CAEjDM,CAAI,CAAG,GAAAC,sBAAa,EAACH,CAAQ,CAAEH,CAAO,CAAC,CACvCO,CAAI,CAAG,GAAAC,sBAAa,EAACL,CAAQ,CAAEH,CAAO,CAAC,CACvCS,CAAY,CAAG,GAAAC,wBAAe,EAACN,CAAM,CAAEJ,CAAO,CAAC,CAE/CW,CAAK,CAAG,CAAC,IAAI,CAAEV,CAAS,CAAEC,CAAS,CAAEG,CAAI,CAAEE,CAAI,CAAEE,CAAY,CAAC,CAIpE,MAFI,CAAAT,CAAO,CAACY,QAAQ,CAACC,EAAE,EAAEF,CAAK,CAACG,IAAI,CAAC,EAAE,CAAC,CAEhCH,CACR","ignoreList":[]}