---
title: Patient File Load Examples
slug: medhistory-populations-file/guide/patient-file-load-examples
docTags: 
createdAt: 2026-06-10T15:14:54.569Z
---

The following flat files examples are provided in this section:

- [Patient File Enrollment Load Example](docId\:EA2xedqyDEFAqsxUT_419)
- [Patient File Unenrollment Load Example](docId\:EA2xedqyDEFAqsxUT_419)
- [Patient Response File Examples](docId\:EA2xedqyDEFAqsxUT_419)
- [Patient File Load Error Examples](docId\:EA2xedqyDEFAqsxUT_419)
  - [Patient File Load Error Example: Header Information – Invalid Participant ID](docId\:EA2xedqyDEFAqsxUT_419)
  - [Patient File Load Error Example: Detail Information Patient File – File Loaded with Error](docId\:EA2xedqyDEFAqsxUT_419)
  - [Patient File Load Error Example: Detail Information Patient File – Multiple Errors](docId\:EA2xedqyDEFAqsxUT_419)

## Patient File Enrollment Load Example

The following is an example of a Patient File Load that was successfully processed.

HDR|3.0|T00000000012345|PASSWORD|S00000000000003|TRS8804|20181217|00110102|PMA|U|20181217|T|HIGHRISK||12||20240101|20241231

PMA|1|72.7.2.7272510|58861323 |Jones|Robert|Jonathan|Mr.|II|123 Street Avenue|Unit#41|Jacksonville|CO|55123|20060701|M|1234567893|20231231|PMANewRx,PMARefill

PNM|2|72.7.2.7272510|6756367|Crandall|Max||MR||382 115th Road SE||Comal|SC|29929|19521101|M|199999999|20180908|

PNM|3|72.7.2.7272510|56800669|Mann|Adam||Dr.||1926 800th ST||Collingsworth|NE|68178|19700515|M|199999999|20180908|

PAT|4|72.7.2.7272510|43726207|Bell|Catherine|Marcia|||6245 572nd Street||Gholson|WY|82010|19800527|F|199999999|20180908|

PAT|5|72.7.2.7272510|27335157|Rogers|Steven|||PHD|3539 Salmon Lane E||Williamson|ND|58102|19541109|M|199999999|20180908|

PMA|6|72.7.2.7272510|96067214|Flash|Dale|||MD|8896 Arthur Lane||Pleasanton|GU|96919|19540707|M|199999999|20180908|

PMA|7|72.7.2.7272510|58861323|Kelley|Carrie||||1879 Madison ST||Yorktown|PR|00601|20100301|F|199999999|20180908|

PMA|8|72.7.2.7272510|75519315|Kyle|Selina||||2048 642nd Avenue NE||Schleicher|OH|44322|19690326|F|199999999|20180908|

PMA|9|72.7.2.7272510|90718490|Scott|Allan|||II|7017 Walleye AVE||Randall|MD|21401|20020409|M|199999999|20180908|

PMA|10|72.7.2.7272510|80289001|Grayson|Dick|Robin|||5946 90th Lane NW||North Cleveland|OR|97420|20081203|M|199999999|20180908|

TRL|10

## Patient File Unenrollment Load Example

The following is an example of a UNR Patient File Load that was successfully processed.

HDR|3.0|T00000004654294|PASSWORD94|S00000000000003|Trnsm030|20170307|10110102|PMA|U|20170228|T|PAT||

UNR|1|PMA|20210901

TRL|1

## Patient Response File Example

The following is an example of a Patient Response File that is sent from Surescripts to the customer.

SHD|3.0|T00000000012345|S00000000000003|27cbc136-16c1-489e-84c8-f1e56cd22e9d|20181217|07024411|PMA|TRS8804|20181217|00110102|T|01|File Loaded Correctly.

STR|10|0|10|0

## Patient File Load Error Examples

### Header Information – Invalid Participant ID

**Patient File Load**

The Patient File Load example below contains an error in the header. In this example no records were loaded. The error has been color-coded as follows:

- <font color="#CA8A04">**Invalid Sender ID, does not match the Customer ID**</font>
- <font color="#2166AE">**Invalid Participant Password (Customer Password)**</font>

**Example:**

HDR|3.0|T00000000099999|<font color="#2166AE">**PASSING**</font>|S00000000000003|TRS8804|20181217|00110102|PMA|U|20181217|T|HIGHRISK||

PMA|1|72.7.2.7272510|57919598|Austin|Steve||MR||1152 Winding LN||Trinidad|NJ|07101|20021103|M|199999999|20180908|

PNM|2|72.7.2.7272510|6756367|Crandall|Max||MR||382 115th Road SE||Comal|SC|29929|19521101|M|199999999|20180908|

TRL|2

**Patient Response File**

The Patient Response File example below shows an example of an error that will be sent in response to a Patient File Load that includes errors in the header (e.g., Invalid Participant ID, Invalid Participant Password).

**Example:**

SHD|3.0|T00000000099999|S00000000000003|bda2d0fb-f3d2-4d6b-be58-46a2d5255dfb|20181218|23020861|PMA|TRS8804|20181217|00110102|T|03|Invalid HDR and / or TRL. File not loaded.

****<font color="#2166AE">**SDT|1||||E|118The Sender Password provided in the fileload is different than the password provided in the customer activation form.**</font>****

<font color="#CA8A04">**SDT|1||||E|116|The Sender ID T00000000012345 provided in the header does not match the customer ID T00000000099999 in the activation form.**</font>

SDT|2|1|72.7.2.7272510|57919598|E|101|No valid contract for record type PMA exists.

SDT|3|2|72.7.2.7272510|6756367|E|101|No valid contract for record type PNM exists.

STR|2|2|0|4

### Detail Information Patient File – File Loaded with Error

**Patient File Load**

In the Patient File Load example below, record #2 did not include the birthdate column, which is a required field. The data in the error has been color-coded as follows:

****<font color="#CA8A04">**Record 2 is missing the Date of Birth**</font>****

**Example:**

HDR|3.0|T00000000012345|PASSWORD|S00000000000003|TRS8804|20181217|00110102|PMA|U|20181217|T|HIGHRISK||

PMA|1|72.7.2.7272510|57919598|Austin|Steve||MR||1152 Winding LN||Trinidad|NJ|07101|20021103|M|199999999|20180908|

PNM|2|72.7.2.7272510|6756367|Crandall|Max||MR||382 115th Road SE||Comal|SC|29929<font color="#CA8A04">**||**</font>M|199999999|20180908|

TRL|2

**Patient Response File**

The Patient Response File example below shows an example of an error that will be sent in response to a Patient File Load that did not include a required field (e.g., Date of Birth).

**Example:**

SHD|3.0|T00000000012345|S00000000000003|8cb0906a-330d-4bc2-83b4-0459ae87bb46|20181217|09030947|PMA|TRS8804|20181217|00110102|T|02|File loaded with errors.

<font color="#CA8A04">**SDT|3|2|72.7.2.7272510|6756367|E|107|Required column birthDate missing.**</font>

STR|2|1|1|1

### Detail Information Patient File – Multiple Errors

**Patient File Load**

The Patient File Load example below contains multiple errors in the Detail Information Patient File.

The errors have been color-coded as follows:

- <font color="#CA8A04">**Record 1 has an invalid NPI**</font>
- <font color="#B91C1C">**Record 2 is missing the NPI**</font>
- <font color="#15803D">**Record 3 has an invalid end monitoring date**</font>
- <font color="#EC4899">**Record 4 has an invalid name character count**</font>
- <font color="#6B21A8">**Record 5 is missing the Patient Id**</font>

**Example:**

HDR|3.0|T00000000012345|PASSWORD|S00000000000003|TRS8804|20181217|00110102|PMA|U|20181217|T|HIGHRISK||12||20240101|20241231

PMA|1|72.7.2.7272510|57919598|Austin|Steve||MR||1152 Winding LN||Trinidad|NJ|07101|20021103|M|<font color="#CA8A04">**9999999999**</font>|20180908|PMAControlledSubstance,PMANewPrescriber

PNM|2|72.7.2.7272510|6756367|Crandall|Max||MR||382 115th Road SE||Comal|SC|29929|19521101|M<font color="#B91C1C">**||**</font>20180908|

PNM|3|72.7.2.7272510|80289003|Valdez|J|Pickle|||2590 388th LN||West Orange|AR|72944|20120316|M|1932400116|<font color="#15803D">**202108254**</font>|

PMA|4|72.7.2.7272510|75519318<font color="#EC4899">**|Va|J|P**</font>|||2590 388th LN||West Orange|AR|72944|20120316|M|1932400116|20211899|

PMA|5|72.7.2.7272510<font color="#6B21A8">**||**</font>Rogers|Steven|||PHD|3539 Salmon Lane E||Williamson|ND|58102|19541109|M|199999999|20180908|

PMA|6|72.7.2.7272510|96067214|Flash|Dale|||MD|8896 Arthur Lane||Pleasanton|GU|96919|19540707|M|199999999|20180908|

PMA|7|72.7.2.7272510|58861323|Kelley|Carrie||||1879 Madison ST||Yorktown|PR|00601|20100301|F|199999999|20180908|

PMA|8|72.7.2.7272510|75519315|Kyle|Selina||||2048 642nd Avenue NE||Schleicher|OH|44322|19690326|F|199999999|20180908|

PMA|9|72.7.2.7272510|90718490|Scott|Allan|||II|7017 Walleye AVE||Randall|MD|21401|20020409|M|199999999|20180908|

PMA|10|72.7.2.7272510|80289001|Grayson|Dick|Robin|||5946 90th Lane NW||North Cleveland|OR|97420|20081203|M|199999999|20180908|

TRL|10

**Patient Response File**

The Patient Response File example below shows an example of an error that will be sent in response to a Patient File Load that contains multiple errors.

**Example:**

SHD|3.0|T00000000012345|S00000000000003|e61d1e43-a6c2-42e4-a7d8-36c99f7ff9bc|20181219|01022815|PMA|TRS8804|20181217|00110102|T|02|File loaded with errors.

<font color="#CA8A04">**SDT|2|1|72.7.2.7272510|57919598|E|109|Invalid NPI value: 9999999999.**</font>

<font color="#B91C1C"></font>

<font color="#15803D"></font>

<font color="#EC4899">**SDT|5|4|72.7.2.7272510|43726207|E|127|Two of a person's names (Last Name, First Name, Middle Name) must have 2 or more characters.**</font>

<font color="#6B21A8">**SDT|6|5|72.7.2.7272510||E|107|Required column patientId missing.**</font>

STR|10|5|5|5
