@astm-e1394/dictionary 0.0.0-stage → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +46 -2
  3. package/astm-date.util.d.ts +13 -0
  4. package/astm-date.util.js +90 -0
  5. package/astm-dictionary.d.ts +36 -0
  6. package/astm-dictionary.js +69 -0
  7. package/astm-number.util.d.ts +4 -0
  8. package/astm-number.util.js +43 -0
  9. package/astm-records.d.ts +2 -0
  10. package/astm-records.js +164 -0
  11. package/astm-types.d.ts +2 -0
  12. package/astm-types.js +66 -0
  13. package/index.d.ts +9 -0
  14. package/index.js +9 -0
  15. package/package.json +22 -3
  16. package/record-fields/c-record.enum.d.ts +8 -0
  17. package/record-fields/c-record.enum.js +9 -0
  18. package/record-fields/h-record.enum.d.ts +17 -0
  19. package/record-fields/h-record.enum.js +18 -0
  20. package/record-fields/index.d.ts +9 -0
  21. package/record-fields/index.js +9 -0
  22. package/record-fields/l-record.enum.d.ts +6 -0
  23. package/record-fields/l-record.enum.js +7 -0
  24. package/record-fields/m-record.enum.d.ts +5 -0
  25. package/record-fields/m-record.enum.js +6 -0
  26. package/record-fields/o-record.enum.d.ts +34 -0
  27. package/record-fields/o-record.enum.js +35 -0
  28. package/record-fields/p-record.enum.d.ts +38 -0
  29. package/record-fields/p-record.enum.js +39 -0
  30. package/record-fields/q-record.enum.d.ts +16 -0
  31. package/record-fields/q-record.enum.js +17 -0
  32. package/record-fields/r-record.enum.d.ts +17 -0
  33. package/record-fields/r-record.enum.js +18 -0
  34. package/record-fields/s-record.enum.d.ts +24 -0
  35. package/record-fields/s-record.enum.js +25 -0
  36. package/tables/astm-tables.d.ts +2 -0
  37. package/tables/astm-tables.js +128 -0
  38. package/tables/codes.enum.d.ts +125 -0
  39. package/tables/codes.enum.js +141 -0
  40. package/tables/index.d.ts +2 -0
  41. package/tables/index.js +2 -0
  42. package/type-fields/ad-type.enum.d.ts +8 -0
  43. package/type-fields/ad-type.enum.js +9 -0
  44. package/type-fields/cn-type.enum.d.ts +9 -0
  45. package/type-fields/cn-type.enum.js +10 -0
  46. package/type-fields/cq-type.enum.d.ts +5 -0
  47. package/type-fields/cq-type.enum.js +6 -0
  48. package/type-fields/index.d.ts +6 -0
  49. package/type-fields/index.js +6 -0
  50. package/type-fields/pn-type.enum.d.ts +8 -0
  51. package/type-fields/pn-type.enum.js +9 -0
  52. package/type-fields/spd-type.enum.d.ts +5 -0
  53. package/type-fields/spd-type.enum.js +6 -0
  54. package/type-fields/uti-type.enum.d.ts +7 -0
  55. package/type-fields/uti-type.enum.js +8 -0
  56. package/types.d.ts +36 -0
  57. package/types.js +1 -0
@@ -0,0 +1,18 @@
1
+ /** Field positions of the Message Header record (H) */
2
+ export var HRecord;
3
+ (function (HRecord) {
4
+ HRecord[HRecord["RecordTypeID"] = 1] = "RecordTypeID";
5
+ HRecord[HRecord["DelimiterDefinition"] = 2] = "DelimiterDefinition";
6
+ HRecord[HRecord["MessageControlID"] = 3] = "MessageControlID";
7
+ HRecord[HRecord["AccessPassword"] = 4] = "AccessPassword";
8
+ HRecord[HRecord["SenderNameOrID"] = 5] = "SenderNameOrID";
9
+ HRecord[HRecord["SenderStreetAddress"] = 6] = "SenderStreetAddress";
10
+ HRecord[HRecord["ReservedField"] = 7] = "ReservedField";
11
+ HRecord[HRecord["SenderTelephoneNumber"] = 8] = "SenderTelephoneNumber";
12
+ HRecord[HRecord["CharacteristicsOfSender"] = 9] = "CharacteristicsOfSender";
13
+ HRecord[HRecord["ReceiverID"] = 10] = "ReceiverID";
14
+ HRecord[HRecord["CommentOrSpecialInstructions"] = 11] = "CommentOrSpecialInstructions";
15
+ HRecord[HRecord["ProcessingID"] = 12] = "ProcessingID";
16
+ HRecord[HRecord["VersionNumber"] = 13] = "VersionNumber";
17
+ HRecord[HRecord["DateAndTimeOfMessage"] = 14] = "DateAndTimeOfMessage";
18
+ })(HRecord || (HRecord = {}));
@@ -0,0 +1,9 @@
1
+ export * from './c-record.enum.js';
2
+ export * from './h-record.enum.js';
3
+ export * from './l-record.enum.js';
4
+ export * from './m-record.enum.js';
5
+ export * from './o-record.enum.js';
6
+ export * from './p-record.enum.js';
7
+ export * from './q-record.enum.js';
8
+ export * from './r-record.enum.js';
9
+ export * from './s-record.enum.js';
@@ -0,0 +1,9 @@
1
+ export * from './c-record.enum.js';
2
+ export * from './h-record.enum.js';
3
+ export * from './l-record.enum.js';
4
+ export * from './m-record.enum.js';
5
+ export * from './o-record.enum.js';
6
+ export * from './p-record.enum.js';
7
+ export * from './q-record.enum.js';
8
+ export * from './r-record.enum.js';
9
+ export * from './s-record.enum.js';
@@ -0,0 +1,6 @@
1
+ /** Field positions of the Message Terminator record (L) */
2
+ export declare enum LRecord {
3
+ RecordTypeID = 1,
4
+ SequenceNumber = 2,
5
+ TerminationCode = 3
6
+ }
@@ -0,0 +1,7 @@
1
+ /** Field positions of the Message Terminator record (L) */
2
+ export var LRecord;
3
+ (function (LRecord) {
4
+ LRecord[LRecord["RecordTypeID"] = 1] = "RecordTypeID";
5
+ LRecord[LRecord["SequenceNumber"] = 2] = "SequenceNumber";
6
+ LRecord[LRecord["TerminationCode"] = 3] = "TerminationCode";
7
+ })(LRecord || (LRecord = {}));
@@ -0,0 +1,5 @@
1
+ /** Field positions of the Manufacturer Information record (M) */
2
+ export declare enum MRecord {
3
+ RecordTypeID = 1,
4
+ SequenceNumber = 2
5
+ }
@@ -0,0 +1,6 @@
1
+ /** Field positions of the Manufacturer Information record (M) */
2
+ export var MRecord;
3
+ (function (MRecord) {
4
+ MRecord[MRecord["RecordTypeID"] = 1] = "RecordTypeID";
5
+ MRecord[MRecord["SequenceNumber"] = 2] = "SequenceNumber";
6
+ })(MRecord || (MRecord = {}));
@@ -0,0 +1,34 @@
1
+ /** Field positions of the Test Order record (O) */
2
+ export declare enum ORecord {
3
+ RecordTypeID = 1,
4
+ SequenceNumber = 2,
5
+ SpecimenID = 3,
6
+ InstrumentSpecimenID = 4,
7
+ UniversalTestID = 5,
8
+ Priority = 6,
9
+ RequestedOrderedDateAndTime = 7,
10
+ SpecimenCollectionDateAndTime = 8,
11
+ CollectionEndTime = 9,
12
+ CollectionVolume = 10,
13
+ CollectorID = 11,
14
+ ActionCode = 12,
15
+ DangerCode = 13,
16
+ RelevantClinicalInformation = 14,
17
+ DateTimeSpecimenReceived = 15,
18
+ SpecimenDescriptor = 16,
19
+ OrderingPhysician = 17,
20
+ PhysiciansTelephoneNumber = 18,
21
+ UserFieldNo1 = 19,
22
+ UserFieldNo2 = 20,
23
+ LaboratoryFieldNo1 = 21,
24
+ LaboratoryFieldNo2 = 22,
25
+ DateTimeResultsReportedOrLastModified = 23,
26
+ InstrumentChargeToComputerSystem = 24,
27
+ InstrumentSectionID = 25,
28
+ ReportTypes = 26,
29
+ ReservedField = 27,
30
+ LocationOrWardOfSpecimenCollection = 28,
31
+ NosocomialInfectionFlag = 29,
32
+ SpecimenService = 30,
33
+ SpecimenInstitution = 31
34
+ }
@@ -0,0 +1,35 @@
1
+ /** Field positions of the Test Order record (O) */
2
+ export var ORecord;
3
+ (function (ORecord) {
4
+ ORecord[ORecord["RecordTypeID"] = 1] = "RecordTypeID";
5
+ ORecord[ORecord["SequenceNumber"] = 2] = "SequenceNumber";
6
+ ORecord[ORecord["SpecimenID"] = 3] = "SpecimenID";
7
+ ORecord[ORecord["InstrumentSpecimenID"] = 4] = "InstrumentSpecimenID";
8
+ ORecord[ORecord["UniversalTestID"] = 5] = "UniversalTestID";
9
+ ORecord[ORecord["Priority"] = 6] = "Priority";
10
+ ORecord[ORecord["RequestedOrderedDateAndTime"] = 7] = "RequestedOrderedDateAndTime";
11
+ ORecord[ORecord["SpecimenCollectionDateAndTime"] = 8] = "SpecimenCollectionDateAndTime";
12
+ ORecord[ORecord["CollectionEndTime"] = 9] = "CollectionEndTime";
13
+ ORecord[ORecord["CollectionVolume"] = 10] = "CollectionVolume";
14
+ ORecord[ORecord["CollectorID"] = 11] = "CollectorID";
15
+ ORecord[ORecord["ActionCode"] = 12] = "ActionCode";
16
+ ORecord[ORecord["DangerCode"] = 13] = "DangerCode";
17
+ ORecord[ORecord["RelevantClinicalInformation"] = 14] = "RelevantClinicalInformation";
18
+ ORecord[ORecord["DateTimeSpecimenReceived"] = 15] = "DateTimeSpecimenReceived";
19
+ ORecord[ORecord["SpecimenDescriptor"] = 16] = "SpecimenDescriptor";
20
+ ORecord[ORecord["OrderingPhysician"] = 17] = "OrderingPhysician";
21
+ ORecord[ORecord["PhysiciansTelephoneNumber"] = 18] = "PhysiciansTelephoneNumber";
22
+ ORecord[ORecord["UserFieldNo1"] = 19] = "UserFieldNo1";
23
+ ORecord[ORecord["UserFieldNo2"] = 20] = "UserFieldNo2";
24
+ ORecord[ORecord["LaboratoryFieldNo1"] = 21] = "LaboratoryFieldNo1";
25
+ ORecord[ORecord["LaboratoryFieldNo2"] = 22] = "LaboratoryFieldNo2";
26
+ ORecord[ORecord["DateTimeResultsReportedOrLastModified"] = 23] = "DateTimeResultsReportedOrLastModified";
27
+ ORecord[ORecord["InstrumentChargeToComputerSystem"] = 24] = "InstrumentChargeToComputerSystem";
28
+ ORecord[ORecord["InstrumentSectionID"] = 25] = "InstrumentSectionID";
29
+ ORecord[ORecord["ReportTypes"] = 26] = "ReportTypes";
30
+ ORecord[ORecord["ReservedField"] = 27] = "ReservedField";
31
+ ORecord[ORecord["LocationOrWardOfSpecimenCollection"] = 28] = "LocationOrWardOfSpecimenCollection";
32
+ ORecord[ORecord["NosocomialInfectionFlag"] = 29] = "NosocomialInfectionFlag";
33
+ ORecord[ORecord["SpecimenService"] = 30] = "SpecimenService";
34
+ ORecord[ORecord["SpecimenInstitution"] = 31] = "SpecimenInstitution";
35
+ })(ORecord || (ORecord = {}));
@@ -0,0 +1,38 @@
1
+ /** Field positions of the Patient Information record (P) */
2
+ export declare enum PRecord {
3
+ RecordTypeID = 1,
4
+ SequenceNumber = 2,
5
+ PracticeAssignedPatientID = 3,
6
+ LaboratoryAssignedPatientID = 4,
7
+ PatientIDNo3 = 5,
8
+ PatientName = 6,
9
+ MothersMaidenName = 7,
10
+ Birthdate = 8,
11
+ PatientSex = 9,
12
+ PatientRaceEthnicOrigin = 10,
13
+ PatientAddress = 11,
14
+ ReservedField = 12,
15
+ PatientTelephoneNumber = 13,
16
+ AttendingPhysicianID = 14,
17
+ SpecialField1 = 15,
18
+ SpecialField2 = 16,
19
+ PatientHeight = 17,
20
+ PatientWeight = 18,
21
+ PatientsKnownOrSuspectedDiagnosis = 19,
22
+ PatientActiveMedications = 20,
23
+ PatientsDiet = 21,
24
+ PracticeFieldNo1 = 22,
25
+ PracticeFieldNo2 = 23,
26
+ AdmissionAndDischargeDates = 24,
27
+ AdmissionStatus = 25,
28
+ Location = 26,
29
+ NatureOfAlternativeDiagnosticCodeAndClassifiers = 27,
30
+ AlternativeDiagnosticCodeAndClassification = 28,
31
+ PatientReligion = 29,
32
+ MaritalStatus = 30,
33
+ IsolationStatus = 31,
34
+ Language = 32,
35
+ HospitalService = 33,
36
+ HospitalInstitution = 34,
37
+ DosageCategory = 35
38
+ }
@@ -0,0 +1,39 @@
1
+ /** Field positions of the Patient Information record (P) */
2
+ export var PRecord;
3
+ (function (PRecord) {
4
+ PRecord[PRecord["RecordTypeID"] = 1] = "RecordTypeID";
5
+ PRecord[PRecord["SequenceNumber"] = 2] = "SequenceNumber";
6
+ PRecord[PRecord["PracticeAssignedPatientID"] = 3] = "PracticeAssignedPatientID";
7
+ PRecord[PRecord["LaboratoryAssignedPatientID"] = 4] = "LaboratoryAssignedPatientID";
8
+ PRecord[PRecord["PatientIDNo3"] = 5] = "PatientIDNo3";
9
+ PRecord[PRecord["PatientName"] = 6] = "PatientName";
10
+ PRecord[PRecord["MothersMaidenName"] = 7] = "MothersMaidenName";
11
+ PRecord[PRecord["Birthdate"] = 8] = "Birthdate";
12
+ PRecord[PRecord["PatientSex"] = 9] = "PatientSex";
13
+ PRecord[PRecord["PatientRaceEthnicOrigin"] = 10] = "PatientRaceEthnicOrigin";
14
+ PRecord[PRecord["PatientAddress"] = 11] = "PatientAddress";
15
+ PRecord[PRecord["ReservedField"] = 12] = "ReservedField";
16
+ PRecord[PRecord["PatientTelephoneNumber"] = 13] = "PatientTelephoneNumber";
17
+ PRecord[PRecord["AttendingPhysicianID"] = 14] = "AttendingPhysicianID";
18
+ PRecord[PRecord["SpecialField1"] = 15] = "SpecialField1";
19
+ PRecord[PRecord["SpecialField2"] = 16] = "SpecialField2";
20
+ PRecord[PRecord["PatientHeight"] = 17] = "PatientHeight";
21
+ PRecord[PRecord["PatientWeight"] = 18] = "PatientWeight";
22
+ PRecord[PRecord["PatientsKnownOrSuspectedDiagnosis"] = 19] = "PatientsKnownOrSuspectedDiagnosis";
23
+ PRecord[PRecord["PatientActiveMedications"] = 20] = "PatientActiveMedications";
24
+ PRecord[PRecord["PatientsDiet"] = 21] = "PatientsDiet";
25
+ PRecord[PRecord["PracticeFieldNo1"] = 22] = "PracticeFieldNo1";
26
+ PRecord[PRecord["PracticeFieldNo2"] = 23] = "PracticeFieldNo2";
27
+ PRecord[PRecord["AdmissionAndDischargeDates"] = 24] = "AdmissionAndDischargeDates";
28
+ PRecord[PRecord["AdmissionStatus"] = 25] = "AdmissionStatus";
29
+ PRecord[PRecord["Location"] = 26] = "Location";
30
+ PRecord[PRecord["NatureOfAlternativeDiagnosticCodeAndClassifiers"] = 27] = "NatureOfAlternativeDiagnosticCodeAndClassifiers";
31
+ PRecord[PRecord["AlternativeDiagnosticCodeAndClassification"] = 28] = "AlternativeDiagnosticCodeAndClassification";
32
+ PRecord[PRecord["PatientReligion"] = 29] = "PatientReligion";
33
+ PRecord[PRecord["MaritalStatus"] = 30] = "MaritalStatus";
34
+ PRecord[PRecord["IsolationStatus"] = 31] = "IsolationStatus";
35
+ PRecord[PRecord["Language"] = 32] = "Language";
36
+ PRecord[PRecord["HospitalService"] = 33] = "HospitalService";
37
+ PRecord[PRecord["HospitalInstitution"] = 34] = "HospitalInstitution";
38
+ PRecord[PRecord["DosageCategory"] = 35] = "DosageCategory";
39
+ })(PRecord || (PRecord = {}));
@@ -0,0 +1,16 @@
1
+ /** Field positions of the Request Information record (Q) */
2
+ export declare enum QRecord {
3
+ RecordTypeID = 1,
4
+ SequenceNumber = 2,
5
+ StartingRangeIDNumber = 3,
6
+ EndingRangeIDNumber = 4,
7
+ UniversalTestID = 5,
8
+ NatureOfRequestTimeLimits = 6,
9
+ BeginningRequestResultsDateAndTime = 7,
10
+ EndingRequestResultsDateAndTime = 8,
11
+ RequestingPhysicianName = 9,
12
+ RequestingPhysicianTelephoneNumber = 10,
13
+ UserFieldNo1 = 11,
14
+ UserFieldNo2 = 12,
15
+ RequestInformationStatusCodes = 13
16
+ }
@@ -0,0 +1,17 @@
1
+ /** Field positions of the Request Information record (Q) */
2
+ export var QRecord;
3
+ (function (QRecord) {
4
+ QRecord[QRecord["RecordTypeID"] = 1] = "RecordTypeID";
5
+ QRecord[QRecord["SequenceNumber"] = 2] = "SequenceNumber";
6
+ QRecord[QRecord["StartingRangeIDNumber"] = 3] = "StartingRangeIDNumber";
7
+ QRecord[QRecord["EndingRangeIDNumber"] = 4] = "EndingRangeIDNumber";
8
+ QRecord[QRecord["UniversalTestID"] = 5] = "UniversalTestID";
9
+ QRecord[QRecord["NatureOfRequestTimeLimits"] = 6] = "NatureOfRequestTimeLimits";
10
+ QRecord[QRecord["BeginningRequestResultsDateAndTime"] = 7] = "BeginningRequestResultsDateAndTime";
11
+ QRecord[QRecord["EndingRequestResultsDateAndTime"] = 8] = "EndingRequestResultsDateAndTime";
12
+ QRecord[QRecord["RequestingPhysicianName"] = 9] = "RequestingPhysicianName";
13
+ QRecord[QRecord["RequestingPhysicianTelephoneNumber"] = 10] = "RequestingPhysicianTelephoneNumber";
14
+ QRecord[QRecord["UserFieldNo1"] = 11] = "UserFieldNo1";
15
+ QRecord[QRecord["UserFieldNo2"] = 12] = "UserFieldNo2";
16
+ QRecord[QRecord["RequestInformationStatusCodes"] = 13] = "RequestInformationStatusCodes";
17
+ })(QRecord || (QRecord = {}));
@@ -0,0 +1,17 @@
1
+ /** Field positions of the Result record (R) */
2
+ export declare enum RRecord {
3
+ RecordTypeID = 1,
4
+ SequenceNumber = 2,
5
+ UniversalTestID = 3,
6
+ DataOrMeasurementValue = 4,
7
+ Units = 5,
8
+ ReferenceRanges = 6,
9
+ ResultAbnormalFlags = 7,
10
+ NatureOfAbnormalityTesting = 8,
11
+ ResultStatus = 9,
12
+ DateOfChangeInInstrumentNormativeValuesOrUnits = 10,
13
+ OperatorIdentification = 11,
14
+ DateTimeTestStarted = 12,
15
+ DateTimeTestCompleted = 13,
16
+ InstrumentIdentification = 14
17
+ }
@@ -0,0 +1,18 @@
1
+ /** Field positions of the Result record (R) */
2
+ export var RRecord;
3
+ (function (RRecord) {
4
+ RRecord[RRecord["RecordTypeID"] = 1] = "RecordTypeID";
5
+ RRecord[RRecord["SequenceNumber"] = 2] = "SequenceNumber";
6
+ RRecord[RRecord["UniversalTestID"] = 3] = "UniversalTestID";
7
+ RRecord[RRecord["DataOrMeasurementValue"] = 4] = "DataOrMeasurementValue";
8
+ RRecord[RRecord["Units"] = 5] = "Units";
9
+ RRecord[RRecord["ReferenceRanges"] = 6] = "ReferenceRanges";
10
+ RRecord[RRecord["ResultAbnormalFlags"] = 7] = "ResultAbnormalFlags";
11
+ RRecord[RRecord["NatureOfAbnormalityTesting"] = 8] = "NatureOfAbnormalityTesting";
12
+ RRecord[RRecord["ResultStatus"] = 9] = "ResultStatus";
13
+ RRecord[RRecord["DateOfChangeInInstrumentNormativeValuesOrUnits"] = 10] = "DateOfChangeInInstrumentNormativeValuesOrUnits";
14
+ RRecord[RRecord["OperatorIdentification"] = 11] = "OperatorIdentification";
15
+ RRecord[RRecord["DateTimeTestStarted"] = 12] = "DateTimeTestStarted";
16
+ RRecord[RRecord["DateTimeTestCompleted"] = 13] = "DateTimeTestCompleted";
17
+ RRecord[RRecord["InstrumentIdentification"] = 14] = "InstrumentIdentification";
18
+ })(RRecord || (RRecord = {}));
@@ -0,0 +1,24 @@
1
+ /** Field positions of the Scientific record (S) */
2
+ export declare enum SRecord {
3
+ RecordTypeID = 1,
4
+ SequenceNumber = 2,
5
+ AnalyticalMethod = 3,
6
+ Instrumentation = 4,
7
+ Reagents = 5,
8
+ UnitsOfMeasure = 6,
9
+ QualityControl = 7,
10
+ SpecimenDescriptor = 8,
11
+ ReservedField = 9,
12
+ Container = 10,
13
+ SpecimenID = 11,
14
+ Analyte = 12,
15
+ Result = 13,
16
+ ResultUnits = 14,
17
+ CollectionDateAndTime = 15,
18
+ ResultDateAndTime = 16,
19
+ AnalyticalPreprocessingSteps = 17,
20
+ PatientDiagnosis = 18,
21
+ PatientBirthdate = 19,
22
+ PatientSex = 20,
23
+ PatientRace = 21
24
+ }
@@ -0,0 +1,25 @@
1
+ /** Field positions of the Scientific record (S) */
2
+ export var SRecord;
3
+ (function (SRecord) {
4
+ SRecord[SRecord["RecordTypeID"] = 1] = "RecordTypeID";
5
+ SRecord[SRecord["SequenceNumber"] = 2] = "SequenceNumber";
6
+ SRecord[SRecord["AnalyticalMethod"] = 3] = "AnalyticalMethod";
7
+ SRecord[SRecord["Instrumentation"] = 4] = "Instrumentation";
8
+ SRecord[SRecord["Reagents"] = 5] = "Reagents";
9
+ SRecord[SRecord["UnitsOfMeasure"] = 6] = "UnitsOfMeasure";
10
+ SRecord[SRecord["QualityControl"] = 7] = "QualityControl";
11
+ SRecord[SRecord["SpecimenDescriptor"] = 8] = "SpecimenDescriptor";
12
+ SRecord[SRecord["ReservedField"] = 9] = "ReservedField";
13
+ SRecord[SRecord["Container"] = 10] = "Container";
14
+ SRecord[SRecord["SpecimenID"] = 11] = "SpecimenID";
15
+ SRecord[SRecord["Analyte"] = 12] = "Analyte";
16
+ SRecord[SRecord["Result"] = 13] = "Result";
17
+ SRecord[SRecord["ResultUnits"] = 14] = "ResultUnits";
18
+ SRecord[SRecord["CollectionDateAndTime"] = 15] = "CollectionDateAndTime";
19
+ SRecord[SRecord["ResultDateAndTime"] = 16] = "ResultDateAndTime";
20
+ SRecord[SRecord["AnalyticalPreprocessingSteps"] = 17] = "AnalyticalPreprocessingSteps";
21
+ SRecord[SRecord["PatientDiagnosis"] = 18] = "PatientDiagnosis";
22
+ SRecord[SRecord["PatientBirthdate"] = 19] = "PatientBirthdate";
23
+ SRecord[SRecord["PatientSex"] = 20] = "PatientSex";
24
+ SRecord[SRecord["PatientRace"] = 21] = "PatientRace";
25
+ })(SRecord || (SRecord = {}));
@@ -0,0 +1,2 @@
1
+ import type { AstmTableDefinition } from '../types.js';
2
+ export declare const ASTM_TABLES: Readonly<Record<string, AstmTableDefinition>>;
@@ -0,0 +1,128 @@
1
+ /*
2
+ * The coded values ASTM E1394 lists for its fields, by table name (the
3
+ * standard numbers none). A field names its table in its definition
4
+ * (`table`); the enums in this directory give the same codes names.
5
+ */
6
+ function table(desc, values) {
7
+ return Object.freeze({ desc, values: Object.freeze(values) });
8
+ }
9
+ export const ASTM_TABLES = Object.freeze({
10
+ ProcessingID: table('Processing ID (H-12)', {
11
+ P: 'Production',
12
+ T: 'Training',
13
+ D: 'Debugging',
14
+ Q: 'Quality control',
15
+ }),
16
+ Sex: table('Patient sex (P-9, S-20)', {
17
+ M: 'Male',
18
+ F: 'Female',
19
+ U: 'Unknown',
20
+ }),
21
+ AdmissionStatus: table('Admission status (P-25)', {
22
+ OP: 'Outpatient',
23
+ PR: 'Preadmit',
24
+ IP: 'Inpatient',
25
+ ER: 'Emergency room',
26
+ }),
27
+ MaritalStatus: table('Marital status (P-30)', {
28
+ M: 'Married',
29
+ S: 'Single',
30
+ D: 'Divorced',
31
+ W: 'Widowed',
32
+ A: 'Separated',
33
+ }),
34
+ Priority: table('Priority (O-6)', {
35
+ S: 'Stat',
36
+ A: 'As soon as possible',
37
+ R: 'Routine',
38
+ C: 'Callback',
39
+ P: 'Preoperative',
40
+ }),
41
+ ActionCode: table('Action code (O-12)', {
42
+ C: 'Cancel request for the battery or tests named',
43
+ A: 'Add the requested tests or batteries to the existing specimen',
44
+ N: 'New requests accompanying a new specimen',
45
+ P: 'Pending specimen',
46
+ L: 'Reserved',
47
+ X: 'Specimen or test already in process',
48
+ Q: 'Treat specimen as a Q/C test specimen',
49
+ }),
50
+ ReportType: table('Report types (O-26)', {
51
+ O: 'Order record; user asking that analysis be performed',
52
+ C: 'Correction of previously transmitted results',
53
+ P: 'Preliminary results',
54
+ F: 'Final results',
55
+ X: 'Results cannot be done, request cancelled',
56
+ I: 'In instrument pending',
57
+ Y: 'No order on record for this test',
58
+ Z: 'No record of this patient',
59
+ Q: 'Response to query',
60
+ }),
61
+ AbnormalFlag: table('Result abnormal flags (R-7)', {
62
+ L: 'Below low normal',
63
+ H: 'Above high normal',
64
+ LL: 'Below panic normal',
65
+ HH: 'Above panic normal',
66
+ '<': 'Below absolute low, off low scale on an instrument',
67
+ '>': 'Above absolute high, off high scale on an instrument',
68
+ N: 'Normal',
69
+ A: 'Abnormal',
70
+ U: 'Significant change up',
71
+ D: 'Significant change down',
72
+ B: 'Better',
73
+ W: 'Worse',
74
+ }),
75
+ ResultStatus: table('Result status (R-9)', {
76
+ C: 'Correction of previously transmitted results',
77
+ P: 'Preliminary results',
78
+ F: 'Final results',
79
+ X: 'Order cannot be done',
80
+ I: 'In instrument, results pending',
81
+ S: 'Partial results',
82
+ M: 'MIC level',
83
+ R: 'Result previously transmitted',
84
+ N: 'Results that contain the necessary information to run a new order',
85
+ Q: 'Response to an outstanding query',
86
+ V: 'Operator verified or approved result',
87
+ W: 'Warning: validity is questionable',
88
+ }),
89
+ CommentSource: table('Comment source (C-3)', {
90
+ P: 'Practice',
91
+ L: 'Information system',
92
+ I: 'Clinical instrument system',
93
+ }),
94
+ CommentType: table('Comment type (C-5)', {
95
+ G: 'Generic or free text comment',
96
+ T: 'Test name comment',
97
+ P: 'Positive test comment',
98
+ N: 'Negative test comment',
99
+ I: 'Instrument flag comment',
100
+ }),
101
+ RequestTimeLimits: table('Nature of request time limits (Q-6)', {
102
+ S: 'Specimen collect date',
103
+ R: 'Result test date',
104
+ }),
105
+ RequestStatus: table('Request information status codes (Q-13)', {
106
+ C: 'Correction of previously transmitted results',
107
+ P: 'Preliminary results',
108
+ F: 'Final results',
109
+ X: 'Results cannot be done, request cancelled',
110
+ I: 'Request results pending',
111
+ S: 'Request partial or unfinalized results',
112
+ M: 'Result is an MIC level',
113
+ R: 'Result previously transmitted',
114
+ A: 'Abort or cancel last request criteria',
115
+ N: 'Requesting new or edited results only',
116
+ O: 'Requesting test orders and demographics only',
117
+ D: 'Requesting demographics only',
118
+ }),
119
+ TerminationCode: table('Termination code (L-3)', {
120
+ N: 'Normal termination',
121
+ T: 'Sender aborted',
122
+ R: 'Receiver requested abort',
123
+ E: 'Unknown system error',
124
+ Q: 'Error in last request for information',
125
+ I: 'No information available from last query',
126
+ F: 'Last request for information processed',
127
+ }),
128
+ });
@@ -0,0 +1,125 @@
1
+ export declare enum ProcessingID {
2
+ Production = "P",
3
+ Training = "T",
4
+ Debugging = "D",
5
+ QualityControl = "Q"
6
+ }
7
+ export declare enum Sex {
8
+ Male = "M",
9
+ Female = "F",
10
+ Unknown = "U"
11
+ }
12
+ export declare enum AdmissionStatus {
13
+ Outpatient = "OP",
14
+ Preadmit = "PR",
15
+ Inpatient = "IP",
16
+ EmergencyRoom = "ER"
17
+ }
18
+ export declare enum MaritalStatus {
19
+ Married = "M",
20
+ Single = "S",
21
+ Divorced = "D",
22
+ Widowed = "W",
23
+ Separated = "A"
24
+ }
25
+ export declare enum Priority {
26
+ Stat = "S",
27
+ ASAP = "A",
28
+ Routine = "R",
29
+ Callback = "C",
30
+ Preoperative = "P"
31
+ }
32
+ export declare enum ActionCode {
33
+ Cancel = "C",
34
+ Add = "A",
35
+ New = "N",
36
+ Pending = "P",
37
+ Reserved = "L",
38
+ InProcess = "X",
39
+ QualityControl = "Q"
40
+ }
41
+ export declare enum ReportType {
42
+ Order = "O",
43
+ Correction = "C",
44
+ Preliminary = "P",
45
+ Final = "F",
46
+ Cancelled = "X",
47
+ InInstrumentPending = "I",
48
+ NoOrder = "Y",
49
+ NoPatient = "Z",
50
+ QueryResponse = "Q"
51
+ }
52
+ export declare enum AbnormalFlag {
53
+ Low = "L",
54
+ High = "H",
55
+ PanicLow = "LL",
56
+ PanicHigh = "HH",
57
+ BelowAbsoluteLow = "<",
58
+ AboveAbsoluteHigh = ">",
59
+ Normal = "N",
60
+ Abnormal = "A",
61
+ SignificantChangeUp = "U",
62
+ SignificantChangeDown = "D",
63
+ Better = "B",
64
+ Worse = "W"
65
+ }
66
+ /** Nature of abnormality testing (R-8): any combination of these codes */
67
+ export declare enum NatureOfAbnormalityTesting {
68
+ AgeBased = "A",
69
+ SexBased = "S",
70
+ RaceBased = "R",
71
+ Generic = "N"
72
+ }
73
+ export declare enum ResultStatus {
74
+ Correction = "C",
75
+ Preliminary = "P",
76
+ Final = "F",
77
+ Cancelled = "X",
78
+ InInstrumentPending = "I",
79
+ Partial = "S",
80
+ MICLevel = "M",
81
+ PreviouslyTransmitted = "R",
82
+ NewOrderInformation = "N",
83
+ QueryResponse = "Q",
84
+ OperatorVerified = "V",
85
+ Warning = "W"
86
+ }
87
+ export declare enum CommentSource {
88
+ Practice = "P",
89
+ InformationSystem = "L",
90
+ Instrument = "I"
91
+ }
92
+ export declare enum CommentType {
93
+ Generic = "G",
94
+ TestName = "T",
95
+ Positive = "P",
96
+ Negative = "N",
97
+ InstrumentFlag = "I"
98
+ }
99
+ export declare enum RequestTimeLimits {
100
+ SpecimenCollectDate = "S",
101
+ ResultTestDate = "R"
102
+ }
103
+ export declare enum RequestStatus {
104
+ Correction = "C",
105
+ Preliminary = "P",
106
+ Final = "F",
107
+ Cancelled = "X",
108
+ Pending = "I",
109
+ Partial = "S",
110
+ MICLevel = "M",
111
+ PreviouslyTransmitted = "R",
112
+ Abort = "A",
113
+ NewOnly = "N",
114
+ OrdersAndDemographics = "O",
115
+ DemographicsOnly = "D"
116
+ }
117
+ export declare enum TerminationCode {
118
+ Normal = "N",
119
+ SenderAborted = "T",
120
+ ReceiverAborted = "R",
121
+ SystemError = "E",
122
+ QueryError = "Q",
123
+ NoInformation = "I",
124
+ QueryProcessed = "F"
125
+ }