HCPATIENT – Patient
- System
- Inventory Control (IC)
- Prefix
HPT- Primary key
COMPANY,PATIENT-ID- Fields
- 9
- Updated by
- 5 programs
- Referenced by
- 37 programs
HCPATIENT is the Patient table in Lawson Inventory Control (prefix HPT). It is indexed by COMPANY, PATIENT-ID (HPTSET1); alternate indexes: HPTSET2. It is related 1:1 to ICCOMPANY and 1:M to HCPATVISIT. It is updated by CX506, PC20.2, PC310, PC520 and PC521 and referenced by CX100, CX20.1, CX20.2, CX20.4, CX20.5, CX220, CX240, CX30.1 and 29 more. The table has 9 fields, 2 indexes and 2 documented relations.
About HCPATIENT
This is the Patient Information file.
Fields (9)
Column = COBOL field name without the HPT- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
HPT-COMPANY PKCOMPANY | Numeric 4 | Identifies the AP company if the resource type = V. Identifies the HR company if the resource type = E. It is blank for type A, P or Q resources. | CX506, PC20.2, PC520, PC521 |
HPT-PATIENT-ID PKPATIENT_ID | Alpha 12 | This uniquely identifies a patient within a company. | CX506, PC20.2, PC520, PC521 |
HPT-LAST-NAMELAST_NAME | Alpha 30 (Lower Case) | This field contains the last name of the patient. | CX240, CX506, PC20.2, PC520, PC521 |
HPT-FIRST-NAMEFIRST_NAME | Alpha 15 (Lower Case) | This field contains the first name of the patient. | CX240, CX506, PC20.2, PC520, PC521 |
HPT-MIDDLE-INITMIDDLE_INIT | Alpha 1 | This field contains the middle initial of the patient. | CX240, CX506, PC20.2, PC520, PC521 |
HPT-BIRTHDATEBIRTHDATE | Numeric 8 (yyyymmdd) | This field contains the patient's date of birth. | CX506, PC20.2, PC520, PC521 |
HPT-UPDATE-DATEUPDATE_DATE | Numeric 8 (yyyymmdd) | This is the date of the last update to the patient record. | PC20.2, PC520, PC521 |
HPT-CONTRACTCONTRACT | Alpha 15 | This field contains the contract information for the patient. | PC20.2, PC520 |
HPT-FICA-NBRFICA_NBR | Alpha 20 | — | PC521 |
Indexes (2)
Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
HPTSET1 | COMPANY, PATIENT-ID | Primary | CX100, CX20.1, CX20.2, CX20.4, CX20.5, CX220, CX240, CX30.1 +22 more (list truncated in source) | |
HPTSET2 | COMPANY, LAST-NAME, FIRST-NAME, PATIENT-ID | KeyChange | — |
Relations
One to one (1) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Iccompany | ICCOMPANY | Required | HPT-COMPANY → ICC-COMPANY (ICCSET1) |
One to many (1) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Hcpatvisit | HCPATVISIT | HPT-COMPANY → HPV-COMPANY, HPT-PATIENT-ID → HPV-PATIENT-ID, → HPV-VISIT-NBR |
Programs
Updated by (5)
- CX506 HL7 Schedules Import Interface
- PC20.2 Patient
- PC310 Patient Purge
- PC520 Patient Upload
- PC521 HL7 ADT Patient Interface
Referenced by (37)
- CX100 Pick List Print
- CX20.1 Case Build
- CX20.2 Case Detail
- CX20.4 Substitute Items
- CX20.5 Insert line
- CX220 Case, Preference Listing
- CX240 Item Returns
- CX30.1 Case Completion Feedback
- CX300 Preference List Purge
- PC210 Patient Charge Reconciliation
- PC530 Patient Charge Download
- WH130 Pick List Print
- WH132 Batch Feedback
- WH190 Shipment Release
- WH222 Shipments In Process
- WH30.1 Picking Feedback by Document
- WH30.2 Picking Feedback by Shipment
- WH30.3 Picking by Batch
- WH30.4 Bin Sequence Picking Feedback
- WH31.1 Packing Feedback by Document
- WH31.2 Packing Feedback by Shipment
- WH31.3 Packing by Batch
- WH31.4 Bin Sequence Packing Feedback
- WH32.1 Shipping Feedback by Document
- WH32.2 Shipping Feedback by Shipment
- WH32.3 Shipping by Batch
- WH32.4 Bin Sequence Shipping Feedback
- WH32.5 Shipping Line Feedback
- WH33.5 Additional Shipment Information
- WH34.1 Component Bins
- WH34.2 Component Lots
- WH34.3 Component Serials
- WH34.4 Component UOMs
- WH40.1 Bill of Lading
- WH40.2 Bill of Lading Feedback
- WH520 Batch Feedback Interface
- WH830 Shipment Load Program