Skip to main content

Creating a New Patient via API

Use the NikoHealth External API to create a new patient record.

Use the NikoHealth External API to create a new patient record. You can see every endpoint below in Swagger.


Before You Start: Get the Location ID

Every patient must be assigned to an organization location. Set up locations in your NikoHealth environment first, then get their IDs:

GET /v1/organization/locations
{
"Count": 1,
"Items": [
{
"Id": "OL1aebcb00cc4ba87960b4a80d06c842d1",
"Npi": "1881144111",
"Name": "Example Medical Supply LLC",
"Address": "123 Main St, Birmingham, AL 35203"
}
]
}

💡 Check whether the patient already exists before creating one. Use GET /v1/patients with filters such as fullName, dateOfBirth.from / dateOfBirth.to, mrn or phoneNumber.


Create the Patient

POST /v1/patients

Required Fields

Field

Notes

LocationId

From GET /v1/organization/locations

Status.Status

Active, Inactive or Hold

General.Name.FirstName / LastName

MiddleName is optional

General.DateOfBirth

YYYY-MM-DD

General.Gender

Male, Female or Unknown

Contacts.Contacts

At least one contact, each with a Type and Value

Addresses.Patient

Requires AddressLine, City and Zip

Addresses.Delivery

Requires AddressLine, City and Zip

Field Values

Field

Allowed values

Contact Type

Home, Work, Cell, Other, Email, Fax

Contacts.PreferredContactType

Same as contact Type

Contacts.PreferredCallTime

Morning, Afternoon, Evening

General.Prefix

Mr, Mrs, Miss, Ms, Dr

General.MaritalStatus

Single, Married, Other

Status.InactiveStatus

InsuranceExpired, PatientExpired, InsNotAccepted, PatientDoesnotQualify, OrderCancelled, PatientRefusedTreatment, Other

Common optional fields: Mrn, General.Ssn, General.Height, General.Weight, TagIds (from GET /v1/patient-tags), EmergencyContact, ResponsibleContact, EmployerContact and CustomFields.

⚠️ Address verification: Patient and delivery addresses are verified automatically, and by default the verified address replaces the one you sent.

To keep your original address, set Addresses.UseSuggestedPatientAddress and/or Addresses.UseSuggestedDeliveryAddress to false.

To skip verification entirely, use SkipPatientAddressVerification and/or SkipDeliveryAddressVerification.

Example

POST /v1/patients
{
"LocationId": "OL1aebcb00cc4ba87960b4a80d06c842d1",
"Mrn": "MRN-000123",
"Status": {
"Status": "Active"
},
"General": {
"Name": { "FirstName": "Jane", "LastName": "Doe" },
"DateOfBirth": "1980-05-14",
"Gender": "Female",
"MaritalStatus": "Married"
},
"Contacts": {
"Contacts": [
{ "Type": "Cell", "Value": "2055551234", "CountryCode": "1" },
{ "Type": "Email", "Value": "jane.doe@example.com" }
],
"PreferredContactType": "Cell",
"PreferredCallTime": "Morning"
},
"Addresses": {
"Patient": {
"AddressLine": "123 Main St",
"City": "Birmingham",
"State": "AL",
"Zip": "35203"
},
"Delivery": {
"AddressLine": "123 Main St",
"City": "Birmingham",
"State": "AL",
"Zip": "35203"
},
"UseSuggestedPatientAddress": false,
"UseSuggestedDeliveryAddress": false
}
}

Response: 201 Created

{ "Id": "10000105" }

Save the returned Id. You’ll use it for every patient-level call that follows, such as insurances, documents, notes and eligibility.


Related Endpoints

Endpoint

Purpose

GET /v1/patients

Search patients

GET /v1/patients/{id}

Get one patient

PUT /v1/patients/{id}

Update a patient

POST /v1/patients/{patientId}/insurances


Common Errors

Code

Meaning

400

Invalid request, such as a missing required field, a bad enum value or an invalid address

401

The token is missing, expired or invalid

403

You don’t have permission to access this resource

429

Too many requests

Did this answer your question?