Patient Request Data Object (Schemas)

📃

Note:

An empty string "" is considered a value and validation rules will apply (length/valid code/etc). Only null or missing elements will use default values.

Patient Request Data Object

Patient

FieldTypeCharacter LimitRequired/OptionalDescription
patientKeyString50RequiredUnique patient ID in Client system.
firstNameString35RequiredPatient's first name.
lastNameString35RequiredPatient's last name.
birthDateDateTimeYYYY-MM-DDRequiredPatient's Date of Birth
genderString1RequiredPatient’s Gender – M, F or U
patientLanguageString3OptionalPatient language must be ENG or SPA.
addressObject (address)RequiredObject containing patient’s address information. See Address table.
contactObject (contact)RequiredObject containing patient’s contact information. See Contact table.
allergiesArray [allergies]RequiredArray containing patient’s allergy information. See the Allergies table for valid list of allergies.
externalMedicationsArray [externalMedications]OptionalArray containing patient’s external medications objects. List any external Medications the patient is taking for pharmacy to know if there is any drug interaction. If there are external medications, then ensure all the object elements are populated. See External Medications table.

Patient (Update Api)

Field

Type

Character Limit

Required/Optional

Description

patientKey

String

50

Required

Unique patient ID in Client system.

firstName

String

35

Required

Patient's first name.

lastName

String

35

Required

Patient's last name.

birthDate

DateTime

YYYY-MM-DD

Required

Patient's Date of Birth

gender

String

1

Required

Patient’s Gender – M, F or U

patientLanguage

String

3

Optional

Patient language must be ENG or SPA.

pregnancyIndicator

Bool

Optional

Patient's pregnancy state

address

Object (address)

Required

Object containing patient’s address information. See Address table.

contact

Object (contact)

Required

Object containing patient’s contact information. See Contact table.

allergies

Array [allergies]

Required

Array containing patient’s allergy information. See the Allergies table for valid list of allergies.

externalMedications

Array [externalMedications]

Optional

Array containing patient’s external medications objects. List any external Medications the patient is taking for pharmacy to know if there is any drug interaction. If there are external medications, then ensure all the object elements are populated. See External Medications table.

identification

Object (identification)

Optional

This object is used to update the Patient identification documents like driving license and its details in epost.

See List of Identification Documents.

Address

FieldTypeCharacter LimitRequired/OptionalDescription
addressTypeString15OptionalDefines the type of address. If the filed is not sent by client, then defaults to HOME. Valid values include HOME, PRIMARY OFFICE, TEMPORARY, CORPORATE, ALTERNATE
line1String40RequiredStreet Address
line2String40OptionalStreet Address
line3String40OptionalStreet Address
cityString35RequiredCity
stateString2RequiredUS State Abbreviation Code
zipCodeString10RequiredFormat NNNNN or NNNNN-NNNN
countryCodeString2OptionalISO-3166 2 character country code. Defaults to US.
defaultAddressBooleanOptionalValues = true/false. When the address is to be used as the default address for patient, then populate True; otherwise default to FALSE.

Contact

Field

Type

Character Limit

Required/Optional

Description

contactType

String

15

Optional

Patient Contact – Phone, Home Phone, Day Phone, Work Phone, Fax Number, Cellular Number, Alternate

contactAddress

String

10

Required

Contact Details. For instance: Populate phone number if contact type is phone. Format:XXXXXXXXXX

emailAddress

String

60

Optional

Patient Email Address or Email Id. Note: This field will be visible only if value is not null.

*Required if the Contact object is being provided in the Patient object.

Allergies

FieldTypeCharacter LimitRequired/OptionalDescription
allergiesArray40RequiredArray of string. Character limit is for each string in Array. See valid allergy types below. The allergies field is required, if patient has no allergies pass "NO KNOWN".
Allergy NameAllergy Class
ACE INHIBITORSACE INHIBITORS
ACETAMINOPHENACETAMINOPHEN
AmoxicillinPenicillins
AspirinSalicylates
AtenololBETA ADRENERGIC BLOCKERS
AtorvastatinSTATINS
BenazeprilACE INHIBITORS
BETA ADRENERGIC BLOCKERSBETA ADRENERGIC BLOCKERS
CephalosporinsCephalosporins
CiprofloxacinQUINOLONES
CodeineMorphine and Related
DemerolMEPERIDINE AND RELATED
ErythromycinMacrolides and Ketolides
FosinoprilACE INHIBITORS
IBUPROFENNSAIDS
IODIDESIODINATED CONTRAST MEDIA
IODINATED CONTRAST MEDIAIODINATED CONTRAST MEDIA
IODINATED DIAGNOSTIC AGENTSIODINATED CONTRAST MEDIA
LevofloxacinQUINOLONES
LisinoprilACE INHIBITORS
Macrolides and KetolidesMacrolides and Ketolides
MEPERIDINE AND RELATEDMEPERIDINE AND RELATED
MetoprololBETA ADRENERGIC BLOCKERS
MISC. SULFONAMIDE CONTAINING COMPOUNDSMISC. SULFONAMIDE CONTAINING COMPOUNDS
Morphine and RelatedMorphine and Related
No KnownNo Known Drug Allergy
No Known Drug AllergyNo Known Drug Allergy
NSAIDSNSAIDS
PenicillinsPenicillins
QUINOLONESQUINOLONES
RosuvastatinSTATINS
SalicylatesSalicylates
SHELLFISH-DERIVED PRODUCTSSHELLFISH-DERIVED PRODUCTS
SimvastatinSTATINS
STATINSSTATINS
SulfaSulfa Antibiotics
Sulfa AntibioticsSulfa Antibiotics
TetracyclinesTetracyclines & Related
Tetracyclines & RelatedTetracyclines & Related
📃

Additional Allergy Information

Allergy information not matching the defined allergy list will still be accepted. However the information will be added in the HealthDyne system under the "notes" section of the Patient's profile for pharmacist to review. Each non-defined allergy list entry has a 40 character limit.

External Medications

FieldTypeCharacter LimitRequired/OptionalDescription
ndcString11Required*NDC of the medication
startDateDateTimeYYYY-MM-DDOptionalDate when medication was started
endDateDateTimeYYYY-MM-DDOptionalDate when medication was ended

*NDC is required if the External Medications object is being provided in the Patient object.

Identification

FieldTypeCharacter LimitRequired/OptionalDescription
patientIdString60Required*Unique Id of the Identity Document.
patientIdCodeString03Required*Code to identify the type of identity document. For example: 02 refers to Driver's license. See List of Identification Documents .
patientIdExpirationDateOnly?YYYY-MM-DDOptionalDate when the identity document will be expired / invalid.

List of Identification Documents

Patient Id CodeDescription
01SOCIAL SECURITY NUMBER
02DRIVERS LICENSE NUMBER
03U.S. MILITARY ID
04Non-SSN based ID
06Medicaid ID assigned by State
07State Issued ID
08Passport ID
09Medicaid HIC#
10Employer Assigned ID
11Payer/PBM Assigned ID
12Alien Number ID
13Student Visa ID
14Indian Tribal ID
1JFacility ID
99OTHER
EAMedical Record ID(EHR)

GET Patient Request

Query Parameter

FieldCharacter LimitTypeRequired/OptionalDescription
patientKey50StringRequiredUnique patient ID in Client system.

Response Object

Field

Type

Character Limit

Required/Optional

Description

patientKey

String

50

Required

Unique patient ID in Client system.

firstName

String

35

Required

Patient's first name.

lastName

String

35

Required

Patient's last name.

gender

String

1

Required

Patient’s Gender – M, F or U

epostPatientNumber

Integer

Optional

Patient's ePost Number. Note: This field will only be visible for DTC client.

patientLanguage

String

3

Required

Patient language must be ENG or SPA.

birthDate

DateTime

YYYY-MM-DD

Required

Patient's Date of Birth

healthCondition

Array

Optional

Patient's health condition.

address

Object (address)

Required

Object containing patient’s address information. See Address table.

contact

Object (contact)

Required

Object containing patient’s contact information. See Contact table.

externalMedications

Array [externalMedications]

Optional

Array containing patient’s external medications objects. List any external Medications the patient is taking for pharmacy to know if there is any drug interaction. If there are external medications, then ensure all the object elements are populated. See External Medications table.

identification

Object (identification)

Optional

This object is used to update the Patient identification documents like driving license and its details in epost. See List of Identification Documents.

pregnancyIndicator

String

1

Required

Patient's pregnancy status.

allergies

Array [allergies]

Optional

Array containing patient’s allergy information. See the Allergies table for valid list of allergies.

Identification

FieldTypeCharacter LimitRequired/OptionalDescription
patientIdString60RequiredUnique Id of the Identity Document.
patientIdCodeString03RequiredCode to identify the type of identity document. For example: 02 refers to Driver's license. See List of Identification Documents .
patientIdExpirationDateOnly?YYYY-MM-DDOptionalDate when the identity document will be expired / invalid.

List of Identification Documents

Patient Id CodeDescription
01SOCIAL SECURITY NUMBER
02DRIVERS LICENSE NUMBER
03U.S. MILITARY ID
04Non-SSN based ID
06Medicaid ID assigned by State
07State Issued ID
08Passport ID
09Medicaid HIC#
10Employer Assigned ID
11Payer/PBM Assigned ID
12Alien Number ID
13Student Visa ID
14Indian Tribal ID
1JFacility ID
99OTHER
EAMedical Record ID(EHR)

Find Patient Request

Query Parameter

FieldTypeCharacter LimitRequired/OptionalDescription
firstNameString35RequiredPatient's first name.
lastNameString35RequiredPatient's last name.
birthDateDateTimeYYYY-MM-DDRequiredPatient's Date of Birth
zipCodeString10RequiredFormat NNNNN or NNNNN-NNNN

Response Object

FieldTypeCharacter LimitRequired/OptionalDescription
patientKeyArrayRequiredArray of patientKey(s) (Unique patient ID in Client system.).
firstNameString35RequiredPatient's first name.
lastNameString35RequiredPatient's last name.
birthDateDateTimeYYYY-MM-DDRequiredPatient's Date of Birth
zipCodeString10RequiredFormat NNNNN or NNNNN-NNNN

Get Patient Scripts/Prescriptions Request

Query Parameter

FieldTypeCharacter LimitRequired/OptionalDescription
patientKeyString50RequiredUnique patient ID in Client system.

Response Object

FieldTypeCharacter LimitRequired/OptionalDescription
scriptKeysArray50 per valueRequiredArray of scriptKey(s) associated to Patient.

Create Patient Request

Request Object

FieldTypeCharacter LimitRequired/OptionalDescription
patientObject (patient)RequiredObject containing patient’s personal information.

Response Object

Field

Type

Character Limit

Description

patientKey

String

50

Unique patient ID in Client system.

message

String

max

Status messages string.

epostPatientNumber

Integer

Unique patient number from ePost. Note: This field will appear in response only if EPostRxPatientNumberEnabled flag for client is enabled.

Update Patient Request

Request Object

FieldTypeCharacter LimitRequired/OptionalDescription
patientObject (patient)RequiredObject containing patient’s personal information.

Response Object

Field

Type

Character Limit

Description

patientKey

String

50

Unique patient ID in Client system.

message

String

max

Status messages string.

epostPatientNumber

Integer

Unique patient number from ePost. Note: This field will appear in response only if EPostRxPatientNumberEnabled flag for client is enabled.

Patient Payment Cards Objects

Get Patient Payment Cards Request

Response Object
FieldTypeDescription
patientKeyStringUnique patient ID in Client system.
cardsArrayCards info object
cards Object
FieldTypeDescription
cardTypeStringIndicates the type of card (e.g., Visa, MasterCard, Amex) represented by a numeric code.
cardNumberArrayThe masked payment card number, showing only the last four digits for security.
cardHolderFirstNameStringFirst name of the cardholder as it appears on the card.
cardHolderLastNameStringLast name of the cardholder as it appears on the card.
cardExpireMonthIntegerThe expiration month of the card.
cardExpireYearIntegerThe expiration year of the card.
defaultCardBoolIndicates whether this card is the primary/default card on file (true/false).
cardSequenceNumberStringPayment Card Sequence Number
cardStatusStringPayment Card Status

Add Patient Payment Cards Request

The Add Patient Payment Card endpoint accepts a request payload containing patientKey and returnUrl. The returnUrl is supplied by the client and specifies the callback destination to which the patient is redirected after completing the payment card form.

Request Object
FieldTypeCharacter LimitDescription
patientKeyString50Unique patient ID in Client system.
returnUrlStringThis is the callback URL that the patient will be directed to after adding the payment card
Response Object
FieldTypeCharacter LimitDescription
returnUrlStringThis URL is used by the client to redirect the patient to the payment card entry page.

Update Patient Payment Cards Request

Request Object
FieldTypeDescription
patientKeyStringUnique patient ID in Client system.
cardSequenceNumberStringA unique sequence or reference number associated with the card. Typically used to identify the card in external or internal systems.
expirationMonthIntegerThe month (1–12) when the card expires.
expirationYearIntegerThe 4-digit year when the card expires.
cardFirstNameStringThe cardholder’s first name as it appears on the card.
cardMiddleNameStringThe cardholder’s middle name or initial, if applicable.
cardLastNameStringThe cardholder’s last name as it appears on the card.
Response Object
FieldTypeDescription
patientKeyStringUnique patient ID in Client system.
cardSequenceNumberStringA unique sequence or reference number associated with the card. Typically used to identify the card in external or internal systems.
messageStringMessage or status details related to the request.

Deactivate Patient Payment Cards Request

Request Object
TypeDescription
StringUnique patient ID in Client system.
StringA unique sequence or reference number associated with the card. Typically used to identify the card in external or internal systems.
Response Object
FieldTypeDescription
patientKeyStringUnique patient ID in Client system.
cardSequenceNumberStringA unique sequence or reference number associated with the card. Typically used to identify the card in external or internal systems.
messageStringMessage or status details related to the request.