Interface: Build278ReviewSpec
One services-review item - a patient-event (EV, Loop 2000E) or service
(SS, Loop 2000F) HL. Carries the UM review information, the optional HCR
decision (response only), echoed TRN traces, HI diagnoses, attached
provider NM1s, and the supplemental REF / DTP / MSG. Nested reviews become
child HLs (an SS service under an EV event) parented to this review.
Mirrors "./types.js".X12ServiceReview.
Example
import type { Build278ReviewSpec } from "@cosyte/x12";
const r: Build278ReviewSpec = {
levelCode: "EV", requestCategoryCode: "HS", certificationTypeCode: "I", serviceTypeCode: "1",
traces: [{ traceTypeCode: "1", referenceId: "AUTHREQ-202606-0001" }],
diagnoses: [{ qualifier: "ABK", code: "E1165" }],
dates: [{ qualifier: "472", formatQualifier: "RD8", value: "20260601-20260605" }],
};
Properties
certificationTypeCode?
readonlyoptionalcertificationTypeCode?:string
UM-02 - certification type code (I initial / R renewal).
dates?
readonlyoptionaldates?: readonlyBuild278DateSpec[]
Supplemental DTP dates.
decision?
readonlyoptionaldecision?:Build278DecisionSpec
HCR decision - RESPONSE ONLY (a request review carrying one is refused).
diagnoses?
readonlyoptionaldiagnoses?: readonlyBuild278DiagnosisSpec[]
HI diagnosis composites (emitted as one HI segment).
levelCode?
readonlyoptionallevelCode?:"EV"|"SS"
HL-03 - review level code (EV patient event / SS service). Default "EV".
levelOfServiceCode?
readonlyoptionallevelOfServiceCode?:string
UM-06 - level of service code.
messages?
readonlyoptionalmessages?: readonlystring[]
MSG free-form messages.
providers?
readonlyoptionalproviders?: readonlyBuild278EntitySpec[]
Attached provider NM1s (rendering / attending / operating).
references?
readonlyoptionalreferences?: readonlyBuild278ReferenceSpec[]
Supplemental REF identifiers.
requestCategoryCode
readonlyrequestCategoryCode:string
UM-01 - request category code (required; a review with none is refused).
reviews?
readonlyoptionalreviews?: readonlyBuild278ReviewSpec[]
Nested service (SS) reviews parented to this review.
serviceTypeCode?
readonlyoptionalserviceTypeCode?:string
UM-03 - service type code.
traces?
readonlyoptionaltraces?: readonlyBuild278TraceSpec[]
Loop 2000E/2000F TRN traces.