Skip to main content
Version: v0.0.6

Interface: PatientRecord

The P (patient) record.

Safety: the practice-assigned ID (field 3) and the laboratory-assigned ID (field 4) are modeled as distinct fields and never collapsed, conflating them is the primary result-misfiling path.

Extends

  • RecordBase

Properties

birthDate?

readonly optional birthDate?: AstmDate

Field 8: birthdate (YYYYMMDDHHMMSS, precision-preserving; a truncated run sets truncated).


fields

readonly fields: readonly AstmField[]

The record's fields. fields[0] is the type-letter field; data fields are 1-indexed after it.

Inherited from

RecordBase.fields


laboratoryAssignedId?

readonly optional laboratoryAssignedId?: string

Field 4: laboratory-assigned patient ID. Distinct from PatientRecord.practiceAssignedId.


mothersMaidenName?

readonly optional mothersMaidenName?: string

Field 7: mother's maiden name, surfaced verbatim (a surname component; PHI).


name?

readonly optional name?: PatientName

Field 6: patient name (Last^First^Middle).


patientIdThree?

readonly optional patientIdThree?: string

Field 5: a third patient identifier (e.g. a national/alternate ID), surfaced verbatim. Kept separate from the practice- and laboratory-assigned IDs: the three never collapse into one.


practiceAssignedId?

readonly optional practiceAssignedId?: string

Field 3: practice-assigned patient ID. Distinct from PatientRecord.laboratoryAssignedId.


recordIndex

readonly recordIndex: number

0-based ordinal of the record within the message.

Inherited from

RecordBase.recordIndex


seq?

readonly optional seq?: string

Field 2: sequence number.


sex?

readonly optional sex?: string

Field 9: sex, surfaced raw (M/F/U/vendor value).


type

readonly type: "P"

The record's raw type letter.

Overrides

RecordBase.type