API ReferencefunctionsFunction: encodeCx()Version: v0.0.3On this pageFunction: encodeCx() encodeCx(v): RawField Encode a CX (identifier): component 4 is a nested HD (assigningAuthority). Parameters v CX Returns RawField Example import { encodeCx } from "@cosyte/hl7";encodeCx({ idNumber: "MRN001", assigningAuthority: { namespaceId: "HOSP" }, identifierTypeCode: "MR" });