curl --request POST \
--url https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"patient": {
"mrn": {
"root": "1.2.3.4",
"extension": "ABC123"
},
"name": {
"family": "Johnson",
"given": [
"John",
"Aaron"
],
"prefix": "Mr.",
"suffix": "Jr."
},
"birthDate": "1992-04-09",
"address": {
"lines": [
"123 Main St",
"Suite 517"
],
"city": "Minneapolis",
"state": "MN",
"zip": "55401"
},
"contactPoints": [
{
"value": "9525551234",
"contactPointSystem": "PHONE",
"contactPointUse": "HOME"
}
]
},
"upcomingAppointmentDate": "2024-11-05",
"upcomingAppointmentProvider": {
"npi": "1414912117",
"name": {
"family": "Johnson",
"given": [
"John",
"Aaron"
],
"prefix": "Mr.",
"suffix": "Jr."
}
},
"clinicName": "Simple Clinic Name",
"clinicNpi": "1414912117",
"responseDirectAddress": "contact@yourdomain.com",
"responseFaxNumber": "6125551234",
"responseFriendlyName": "Heart Clinic",
"batchId": "BATCH-123",
"activeIcd10Diagnoses": [
{
"code": "E66.01",
"displayName": "Morbid (severe) obesity due to excess calories",
"date": "2022-12-12"
}
],
"activeIcd9Diagnoses": [
{
"code": "401.1",
"displayName": "Benign essential hypertension",
"date": "2023-12-12"
}
],
"activeSnomedDiagnoses": [
{
"code": "34713006",
"displayName": "Vitamin D deficiency",
"date": "2023-11-12"
}
],
"medications": [
{
"active": true,
"nameCode": {
"code": "6809",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN"
},
"classCode": {
"code": "N0000175565",
"codeSystem": "2.16.840.1.113883.6.345",
"codeSystemName": "MED-RT",
"displayName": "Biguanide"
},
"scheduleCode": {
"code": "IV",
"codeSystem": "2.16.840.1.113883.12.477",
"codeSystemName": "Controlled Substance Schedule",
"displayName": "Schedule IV"
},
"medicationRequests": [
{
"code": {
"code": "861007",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN hydrochloride 500 MG Oral Tablet"
},
"form": {
"code": "C42998",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "tablet"
},
"route": {
"code": "C38288",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "oral"
},
"prescribedDate": "2023-12-02",
"initialFillQuantity": 10,
"numberOfRefillsAllowed": 0,
"timingEvent": "QD",
"frequencyUnit": "d",
"frequencyValue": 1,
"dosageInstruction": {
"text": "take 1 tablet by mouth once daily",
"strengthUnit": "mg",
"strengthValue": 100,
"amountUnit": "puffs",
"amountValue": 2
}
}
]
}
],
"clinicalNotes": [
{
"lines": [
"The patient was pleasant",
"Recommend following up in 2 weeks"
],
"date": "2022-12-12",
"code": {
"code": "11506-3",
"codeSystem": "2.16.840.1.113883.6.1",
"codeSystemName": "LOINC",
"displayName": "Progress Note"
}
}
],
"directives": {
"newPatient": false,
"diagnosticCategories": {
"autoimmune": false,
"bariatric": false,
"behavioral": false,
"cardiovascular": false,
"dental": false,
"dermatological": false,
"endocrinological": false,
"gastroenterological": false,
"generalInformation": false,
"generalSurgery": false,
"hematological": false,
"infectious": false,
"lymphatic": false,
"mens": false,
"metabolic": false,
"musculoskeletal": false,
"neonatological": false,
"neurological": false,
"nutritional": false,
"oncological": false,
"ophthalmic": false,
"otolaryngological": false,
"pain": false,
"postSurgery": false,
"pulmonary": false,
"renal": false,
"spinal": false,
"stroke": false,
"toxicological": false,
"urological": false,
"womens": false
},
"medicationsOfInterest": [
{
"active": true,
"nameCode": {
"code": "6809",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN"
},
"classCode": {
"code": "N0000175565",
"codeSystem": "2.16.840.1.113883.6.345",
"codeSystemName": "MED-RT",
"displayName": "Biguanide"
},
"scheduleCode": {
"code": "IV",
"codeSystem": "2.16.840.1.113883.12.477",
"codeSystemName": "Controlled Substance Schedule",
"displayName": "Schedule IV"
},
"medicationRequests": [
{
"code": {
"code": "861007",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN hydrochloride 500 MG Oral Tablet"
},
"form": {
"code": "C42998",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "tablet"
},
"route": {
"code": "C38288",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "oral"
},
"prescribedDate": "2023-12-02",
"initialFillQuantity": 10,
"numberOfRefillsAllowed": 0,
"timingEvent": "QD",
"frequencyUnit": "d",
"frequencyValue": 1,
"dosageInstruction": {
"text": "take 1 tablet by mouth once daily",
"strengthUnit": "mg",
"strengthValue": 100,
"amountUnit": "puffs",
"amountValue": 2
}
}
]
}
]
}
}
'import requests
url = "https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment"
payload = {
"patient": {
"mrn": {
"root": "1.2.3.4",
"extension": "ABC123"
},
"name": {
"family": "Johnson",
"given": ["John", "Aaron"],
"prefix": "Mr.",
"suffix": "Jr."
},
"birthDate": "1992-04-09",
"address": {
"lines": ["123 Main St", "Suite 517"],
"city": "Minneapolis",
"state": "MN",
"zip": "55401"
},
"contactPoints": [
{
"value": "9525551234",
"contactPointSystem": "PHONE",
"contactPointUse": "HOME"
}
]
},
"upcomingAppointmentDate": "2024-11-05",
"upcomingAppointmentProvider": {
"npi": "1414912117",
"name": {
"family": "Johnson",
"given": ["John", "Aaron"],
"prefix": "Mr.",
"suffix": "Jr."
}
},
"clinicName": "Simple Clinic Name",
"clinicNpi": "1414912117",
"responseDirectAddress": "contact@yourdomain.com",
"responseFaxNumber": "6125551234",
"responseFriendlyName": "Heart Clinic",
"batchId": "BATCH-123",
"activeIcd10Diagnoses": [
{
"code": "E66.01",
"displayName": "Morbid (severe) obesity due to excess calories",
"date": "2022-12-12"
}
],
"activeIcd9Diagnoses": [
{
"code": "401.1",
"displayName": "Benign essential hypertension",
"date": "2023-12-12"
}
],
"activeSnomedDiagnoses": [
{
"code": "34713006",
"displayName": "Vitamin D deficiency",
"date": "2023-11-12"
}
],
"medications": [
{
"active": True,
"nameCode": {
"code": "6809",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN"
},
"classCode": {
"code": "N0000175565",
"codeSystem": "2.16.840.1.113883.6.345",
"codeSystemName": "MED-RT",
"displayName": "Biguanide"
},
"scheduleCode": {
"code": "IV",
"codeSystem": "2.16.840.1.113883.12.477",
"codeSystemName": "Controlled Substance Schedule",
"displayName": "Schedule IV"
},
"medicationRequests": [
{
"code": {
"code": "861007",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN hydrochloride 500 MG Oral Tablet"
},
"form": {
"code": "C42998",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "tablet"
},
"route": {
"code": "C38288",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "oral"
},
"prescribedDate": "2023-12-02",
"initialFillQuantity": 10,
"numberOfRefillsAllowed": 0,
"timingEvent": "QD",
"frequencyUnit": "d",
"frequencyValue": 1,
"dosageInstruction": {
"text": "take 1 tablet by mouth once daily",
"strengthUnit": "mg",
"strengthValue": 100,
"amountUnit": "puffs",
"amountValue": 2
}
}
]
}
],
"clinicalNotes": [
{
"lines": ["The patient was pleasant", "Recommend following up in 2 weeks"],
"date": "2022-12-12",
"code": {
"code": "11506-3",
"codeSystem": "2.16.840.1.113883.6.1",
"codeSystemName": "LOINC",
"displayName": "Progress Note"
}
}
],
"directives": {
"newPatient": False,
"diagnosticCategories": {
"autoimmune": False,
"bariatric": False,
"behavioral": False,
"cardiovascular": False,
"dental": False,
"dermatological": False,
"endocrinological": False,
"gastroenterological": False,
"generalInformation": False,
"generalSurgery": False,
"hematological": False,
"infectious": False,
"lymphatic": False,
"mens": False,
"metabolic": False,
"musculoskeletal": False,
"neonatological": False,
"neurological": False,
"nutritional": False,
"oncological": False,
"ophthalmic": False,
"otolaryngological": False,
"pain": False,
"postSurgery": False,
"pulmonary": False,
"renal": False,
"spinal": False,
"stroke": False,
"toxicological": False,
"urological": False,
"womens": False
},
"medicationsOfInterest": [
{
"active": True,
"nameCode": {
"code": "6809",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN"
},
"classCode": {
"code": "N0000175565",
"codeSystem": "2.16.840.1.113883.6.345",
"codeSystemName": "MED-RT",
"displayName": "Biguanide"
},
"scheduleCode": {
"code": "IV",
"codeSystem": "2.16.840.1.113883.12.477",
"codeSystemName": "Controlled Substance Schedule",
"displayName": "Schedule IV"
},
"medicationRequests": [
{
"code": {
"code": "861007",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN hydrochloride 500 MG Oral Tablet"
},
"form": {
"code": "C42998",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "tablet"
},
"route": {
"code": "C38288",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "oral"
},
"prescribedDate": "2023-12-02",
"initialFillQuantity": 10,
"numberOfRefillsAllowed": 0,
"timingEvent": "QD",
"frequencyUnit": "d",
"frequencyValue": 1,
"dosageInstruction": {
"text": "take 1 tablet by mouth once daily",
"strengthUnit": "mg",
"strengthValue": 100,
"amountUnit": "puffs",
"amountValue": 2
}
}
]
}
]
}
}
headers = {
"apiKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apiKey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
patient: {
mrn: {root: '1.2.3.4', extension: 'ABC123'},
name: {family: 'Johnson', given: ['John', 'Aaron'], prefix: 'Mr.', suffix: 'Jr.'},
birthDate: '1992-04-09',
address: {
lines: ['123 Main St', 'Suite 517'],
city: 'Minneapolis',
state: 'MN',
zip: '55401'
},
contactPoints: [{value: '9525551234', contactPointSystem: 'PHONE', contactPointUse: 'HOME'}]
},
upcomingAppointmentDate: '2024-11-05',
upcomingAppointmentProvider: {
npi: '1414912117',
name: {family: 'Johnson', given: ['John', 'Aaron'], prefix: 'Mr.', suffix: 'Jr.'}
},
clinicName: 'Simple Clinic Name',
clinicNpi: '1414912117',
responseDirectAddress: 'contact@yourdomain.com',
responseFaxNumber: '6125551234',
responseFriendlyName: 'Heart Clinic',
batchId: 'BATCH-123',
activeIcd10Diagnoses: [
{
code: 'E66.01',
displayName: 'Morbid (severe) obesity due to excess calories',
date: '2022-12-12'
}
],
activeIcd9Diagnoses: [
{
code: '401.1',
displayName: 'Benign essential hypertension',
date: '2023-12-12'
}
],
activeSnomedDiagnoses: [{code: '34713006', displayName: 'Vitamin D deficiency', date: '2023-11-12'}],
medications: [
{
active: true,
nameCode: {
code: '6809',
codeSystem: '2.16.840.1.113883.6.88',
codeSystemName: 'RxNorm',
displayName: 'metFORMIN'
},
classCode: {
code: 'N0000175565',
codeSystem: '2.16.840.1.113883.6.345',
codeSystemName: 'MED-RT',
displayName: 'Biguanide'
},
scheduleCode: {
code: 'IV',
codeSystem: '2.16.840.1.113883.12.477',
codeSystemName: 'Controlled Substance Schedule',
displayName: 'Schedule IV'
},
medicationRequests: [
{
code: {
code: '861007',
codeSystem: '2.16.840.1.113883.6.88',
codeSystemName: 'RxNorm',
displayName: 'metFORMIN hydrochloride 500 MG Oral Tablet'
},
form: {
code: 'C42998',
codeSystem: '2.16.840.1.113883.3.26.1.1',
codeSystemName: 'NCI Thesaurus',
displayName: 'tablet'
},
route: {
code: 'C38288',
codeSystem: '2.16.840.1.113883.3.26.1.1',
codeSystemName: 'NCI Thesaurus',
displayName: 'oral'
},
prescribedDate: '2023-12-02',
initialFillQuantity: 10,
numberOfRefillsAllowed: 0,
timingEvent: 'QD',
frequencyUnit: 'd',
frequencyValue: 1,
dosageInstruction: {
text: 'take 1 tablet by mouth once daily',
strengthUnit: 'mg',
strengthValue: 100,
amountUnit: 'puffs',
amountValue: 2
}
}
]
}
],
clinicalNotes: [
{
lines: ['The patient was pleasant', 'Recommend following up in 2 weeks'],
date: '2022-12-12',
code: {
code: '11506-3',
codeSystem: '2.16.840.1.113883.6.1',
codeSystemName: 'LOINC',
displayName: 'Progress Note'
}
}
],
directives: {
newPatient: false,
diagnosticCategories: {
autoimmune: false,
bariatric: false,
behavioral: false,
cardiovascular: false,
dental: false,
dermatological: false,
endocrinological: false,
gastroenterological: false,
generalInformation: false,
generalSurgery: false,
hematological: false,
infectious: false,
lymphatic: false,
mens: false,
metabolic: false,
musculoskeletal: false,
neonatological: false,
neurological: false,
nutritional: false,
oncological: false,
ophthalmic: false,
otolaryngological: false,
pain: false,
postSurgery: false,
pulmonary: false,
renal: false,
spinal: false,
stroke: false,
toxicological: false,
urological: false,
womens: false
},
medicationsOfInterest: [
{
active: true,
nameCode: {
code: '6809',
codeSystem: '2.16.840.1.113883.6.88',
codeSystemName: 'RxNorm',
displayName: 'metFORMIN'
},
classCode: {
code: 'N0000175565',
codeSystem: '2.16.840.1.113883.6.345',
codeSystemName: 'MED-RT',
displayName: 'Biguanide'
},
scheduleCode: {
code: 'IV',
codeSystem: '2.16.840.1.113883.12.477',
codeSystemName: 'Controlled Substance Schedule',
displayName: 'Schedule IV'
},
medicationRequests: [
{
code: {
code: '861007',
codeSystem: '2.16.840.1.113883.6.88',
codeSystemName: 'RxNorm',
displayName: 'metFORMIN hydrochloride 500 MG Oral Tablet'
},
form: {
code: 'C42998',
codeSystem: '2.16.840.1.113883.3.26.1.1',
codeSystemName: 'NCI Thesaurus',
displayName: 'tablet'
},
route: {
code: 'C38288',
codeSystem: '2.16.840.1.113883.3.26.1.1',
codeSystemName: 'NCI Thesaurus',
displayName: 'oral'
},
prescribedDate: '2023-12-02',
initialFillQuantity: 10,
numberOfRefillsAllowed: 0,
timingEvent: 'QD',
frequencyUnit: 'd',
frequencyValue: 1,
dosageInstruction: {
text: 'take 1 tablet by mouth once daily',
strengthUnit: 'mg',
strengthValue: 100,
amountUnit: 'puffs',
amountValue: 2
}
}
]
}
]
}
})
};
fetch('https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'patient' => [
'mrn' => [
'root' => '1.2.3.4',
'extension' => 'ABC123'
],
'name' => [
'family' => 'Johnson',
'given' => [
'John',
'Aaron'
],
'prefix' => 'Mr.',
'suffix' => 'Jr.'
],
'birthDate' => '1992-04-09',
'address' => [
'lines' => [
'123 Main St',
'Suite 517'
],
'city' => 'Minneapolis',
'state' => 'MN',
'zip' => '55401'
],
'contactPoints' => [
[
'value' => '9525551234',
'contactPointSystem' => 'PHONE',
'contactPointUse' => 'HOME'
]
]
],
'upcomingAppointmentDate' => '2024-11-05',
'upcomingAppointmentProvider' => [
'npi' => '1414912117',
'name' => [
'family' => 'Johnson',
'given' => [
'John',
'Aaron'
],
'prefix' => 'Mr.',
'suffix' => 'Jr.'
]
],
'clinicName' => 'Simple Clinic Name',
'clinicNpi' => '1414912117',
'responseDirectAddress' => 'contact@yourdomain.com',
'responseFaxNumber' => '6125551234',
'responseFriendlyName' => 'Heart Clinic',
'batchId' => 'BATCH-123',
'activeIcd10Diagnoses' => [
[
'code' => 'E66.01',
'displayName' => 'Morbid (severe) obesity due to excess calories',
'date' => '2022-12-12'
]
],
'activeIcd9Diagnoses' => [
[
'code' => '401.1',
'displayName' => 'Benign essential hypertension',
'date' => '2023-12-12'
]
],
'activeSnomedDiagnoses' => [
[
'code' => '34713006',
'displayName' => 'Vitamin D deficiency',
'date' => '2023-11-12'
]
],
'medications' => [
[
'active' => true,
'nameCode' => [
'code' => '6809',
'codeSystem' => '2.16.840.1.113883.6.88',
'codeSystemName' => 'RxNorm',
'displayName' => 'metFORMIN'
],
'classCode' => [
'code' => 'N0000175565',
'codeSystem' => '2.16.840.1.113883.6.345',
'codeSystemName' => 'MED-RT',
'displayName' => 'Biguanide'
],
'scheduleCode' => [
'code' => 'IV',
'codeSystem' => '2.16.840.1.113883.12.477',
'codeSystemName' => 'Controlled Substance Schedule',
'displayName' => 'Schedule IV'
],
'medicationRequests' => [
[
'code' => [
'code' => '861007',
'codeSystem' => '2.16.840.1.113883.6.88',
'codeSystemName' => 'RxNorm',
'displayName' => 'metFORMIN hydrochloride 500 MG Oral Tablet'
],
'form' => [
'code' => 'C42998',
'codeSystem' => '2.16.840.1.113883.3.26.1.1',
'codeSystemName' => 'NCI Thesaurus',
'displayName' => 'tablet'
],
'route' => [
'code' => 'C38288',
'codeSystem' => '2.16.840.1.113883.3.26.1.1',
'codeSystemName' => 'NCI Thesaurus',
'displayName' => 'oral'
],
'prescribedDate' => '2023-12-02',
'initialFillQuantity' => 10,
'numberOfRefillsAllowed' => 0,
'timingEvent' => 'QD',
'frequencyUnit' => 'd',
'frequencyValue' => 1,
'dosageInstruction' => [
'text' => 'take 1 tablet by mouth once daily',
'strengthUnit' => 'mg',
'strengthValue' => 100,
'amountUnit' => 'puffs',
'amountValue' => 2
]
]
]
]
],
'clinicalNotes' => [
[
'lines' => [
'The patient was pleasant',
'Recommend following up in 2 weeks'
],
'date' => '2022-12-12',
'code' => [
'code' => '11506-3',
'codeSystem' => '2.16.840.1.113883.6.1',
'codeSystemName' => 'LOINC',
'displayName' => 'Progress Note'
]
]
],
'directives' => [
'newPatient' => false,
'diagnosticCategories' => [
'autoimmune' => false,
'bariatric' => false,
'behavioral' => false,
'cardiovascular' => false,
'dental' => false,
'dermatological' => false,
'endocrinological' => false,
'gastroenterological' => false,
'generalInformation' => false,
'generalSurgery' => false,
'hematological' => false,
'infectious' => false,
'lymphatic' => false,
'mens' => false,
'metabolic' => false,
'musculoskeletal' => false,
'neonatological' => false,
'neurological' => false,
'nutritional' => false,
'oncological' => false,
'ophthalmic' => false,
'otolaryngological' => false,
'pain' => false,
'postSurgery' => false,
'pulmonary' => false,
'renal' => false,
'spinal' => false,
'stroke' => false,
'toxicological' => false,
'urological' => false,
'womens' => false
],
'medicationsOfInterest' => [
[
'active' => true,
'nameCode' => [
'code' => '6809',
'codeSystem' => '2.16.840.1.113883.6.88',
'codeSystemName' => 'RxNorm',
'displayName' => 'metFORMIN'
],
'classCode' => [
'code' => 'N0000175565',
'codeSystem' => '2.16.840.1.113883.6.345',
'codeSystemName' => 'MED-RT',
'displayName' => 'Biguanide'
],
'scheduleCode' => [
'code' => 'IV',
'codeSystem' => '2.16.840.1.113883.12.477',
'codeSystemName' => 'Controlled Substance Schedule',
'displayName' => 'Schedule IV'
],
'medicationRequests' => [
[
'code' => [
'code' => '861007',
'codeSystem' => '2.16.840.1.113883.6.88',
'codeSystemName' => 'RxNorm',
'displayName' => 'metFORMIN hydrochloride 500 MG Oral Tablet'
],
'form' => [
'code' => 'C42998',
'codeSystem' => '2.16.840.1.113883.3.26.1.1',
'codeSystemName' => 'NCI Thesaurus',
'displayName' => 'tablet'
],
'route' => [
'code' => 'C38288',
'codeSystem' => '2.16.840.1.113883.3.26.1.1',
'codeSystemName' => 'NCI Thesaurus',
'displayName' => 'oral'
],
'prescribedDate' => '2023-12-02',
'initialFillQuantity' => 10,
'numberOfRefillsAllowed' => 0,
'timingEvent' => 'QD',
'frequencyUnit' => 'd',
'frequencyValue' => 1,
'dosageInstruction' => [
'text' => 'take 1 tablet by mouth once daily',
'strengthUnit' => 'mg',
'strengthValue' => 100,
'amountUnit' => 'puffs',
'amountValue' => 2
]
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apiKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment"
payload := strings.NewReader("{\n \"patient\": {\n \"mrn\": {\n \"root\": \"1.2.3.4\",\n \"extension\": \"ABC123\"\n },\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n },\n \"birthDate\": \"1992-04-09\",\n \"address\": {\n \"lines\": [\n \"123 Main St\",\n \"Suite 517\"\n ],\n \"city\": \"Minneapolis\",\n \"state\": \"MN\",\n \"zip\": \"55401\"\n },\n \"contactPoints\": [\n {\n \"value\": \"9525551234\",\n \"contactPointSystem\": \"PHONE\",\n \"contactPointUse\": \"HOME\"\n }\n ]\n },\n \"upcomingAppointmentDate\": \"2024-11-05\",\n \"upcomingAppointmentProvider\": {\n \"npi\": \"1414912117\",\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n }\n },\n \"clinicName\": \"Simple Clinic Name\",\n \"clinicNpi\": \"1414912117\",\n \"responseDirectAddress\": \"contact@yourdomain.com\",\n \"responseFaxNumber\": \"6125551234\",\n \"responseFriendlyName\": \"Heart Clinic\",\n \"batchId\": \"BATCH-123\",\n \"activeIcd10Diagnoses\": [\n {\n \"code\": \"E66.01\",\n \"displayName\": \"Morbid (severe) obesity due to excess calories\",\n \"date\": \"2022-12-12\"\n }\n ],\n \"activeIcd9Diagnoses\": [\n {\n \"code\": \"401.1\",\n \"displayName\": \"Benign essential hypertension\",\n \"date\": \"2023-12-12\"\n }\n ],\n \"activeSnomedDiagnoses\": [\n {\n \"code\": \"34713006\",\n \"displayName\": \"Vitamin D deficiency\",\n \"date\": \"2023-11-12\"\n }\n ],\n \"medications\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ],\n \"clinicalNotes\": [\n {\n \"lines\": [\n \"The patient was pleasant\",\n \"Recommend following up in 2 weeks\"\n ],\n \"date\": \"2022-12-12\",\n \"code\": {\n \"code\": \"11506-3\",\n \"codeSystem\": \"2.16.840.1.113883.6.1\",\n \"codeSystemName\": \"LOINC\",\n \"displayName\": \"Progress Note\"\n }\n }\n ],\n \"directives\": {\n \"newPatient\": false,\n \"diagnosticCategories\": {\n \"autoimmune\": false,\n \"bariatric\": false,\n \"behavioral\": false,\n \"cardiovascular\": false,\n \"dental\": false,\n \"dermatological\": false,\n \"endocrinological\": false,\n \"gastroenterological\": false,\n \"generalInformation\": false,\n \"generalSurgery\": false,\n \"hematological\": false,\n \"infectious\": false,\n \"lymphatic\": false,\n \"mens\": false,\n \"metabolic\": false,\n \"musculoskeletal\": false,\n \"neonatological\": false,\n \"neurological\": false,\n \"nutritional\": false,\n \"oncological\": false,\n \"ophthalmic\": false,\n \"otolaryngological\": false,\n \"pain\": false,\n \"postSurgery\": false,\n \"pulmonary\": false,\n \"renal\": false,\n \"spinal\": false,\n \"stroke\": false,\n \"toxicological\": false,\n \"urological\": false,\n \"womens\": false\n },\n \"medicationsOfInterest\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment")
.header("apiKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"patient\": {\n \"mrn\": {\n \"root\": \"1.2.3.4\",\n \"extension\": \"ABC123\"\n },\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n },\n \"birthDate\": \"1992-04-09\",\n \"address\": {\n \"lines\": [\n \"123 Main St\",\n \"Suite 517\"\n ],\n \"city\": \"Minneapolis\",\n \"state\": \"MN\",\n \"zip\": \"55401\"\n },\n \"contactPoints\": [\n {\n \"value\": \"9525551234\",\n \"contactPointSystem\": \"PHONE\",\n \"contactPointUse\": \"HOME\"\n }\n ]\n },\n \"upcomingAppointmentDate\": \"2024-11-05\",\n \"upcomingAppointmentProvider\": {\n \"npi\": \"1414912117\",\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n }\n },\n \"clinicName\": \"Simple Clinic Name\",\n \"clinicNpi\": \"1414912117\",\n \"responseDirectAddress\": \"contact@yourdomain.com\",\n \"responseFaxNumber\": \"6125551234\",\n \"responseFriendlyName\": \"Heart Clinic\",\n \"batchId\": \"BATCH-123\",\n \"activeIcd10Diagnoses\": [\n {\n \"code\": \"E66.01\",\n \"displayName\": \"Morbid (severe) obesity due to excess calories\",\n \"date\": \"2022-12-12\"\n }\n ],\n \"activeIcd9Diagnoses\": [\n {\n \"code\": \"401.1\",\n \"displayName\": \"Benign essential hypertension\",\n \"date\": \"2023-12-12\"\n }\n ],\n \"activeSnomedDiagnoses\": [\n {\n \"code\": \"34713006\",\n \"displayName\": \"Vitamin D deficiency\",\n \"date\": \"2023-11-12\"\n }\n ],\n \"medications\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ],\n \"clinicalNotes\": [\n {\n \"lines\": [\n \"The patient was pleasant\",\n \"Recommend following up in 2 weeks\"\n ],\n \"date\": \"2022-12-12\",\n \"code\": {\n \"code\": \"11506-3\",\n \"codeSystem\": \"2.16.840.1.113883.6.1\",\n \"codeSystemName\": \"LOINC\",\n \"displayName\": \"Progress Note\"\n }\n }\n ],\n \"directives\": {\n \"newPatient\": false,\n \"diagnosticCategories\": {\n \"autoimmune\": false,\n \"bariatric\": false,\n \"behavioral\": false,\n \"cardiovascular\": false,\n \"dental\": false,\n \"dermatological\": false,\n \"endocrinological\": false,\n \"gastroenterological\": false,\n \"generalInformation\": false,\n \"generalSurgery\": false,\n \"hematological\": false,\n \"infectious\": false,\n \"lymphatic\": false,\n \"mens\": false,\n \"metabolic\": false,\n \"musculoskeletal\": false,\n \"neonatological\": false,\n \"neurological\": false,\n \"nutritional\": false,\n \"oncological\": false,\n \"ophthalmic\": false,\n \"otolaryngological\": false,\n \"pain\": false,\n \"postSurgery\": false,\n \"pulmonary\": false,\n \"renal\": false,\n \"spinal\": false,\n \"stroke\": false,\n \"toxicological\": false,\n \"urological\": false,\n \"womens\": false\n },\n \"medicationsOfInterest\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apiKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"patient\": {\n \"mrn\": {\n \"root\": \"1.2.3.4\",\n \"extension\": \"ABC123\"\n },\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n },\n \"birthDate\": \"1992-04-09\",\n \"address\": {\n \"lines\": [\n \"123 Main St\",\n \"Suite 517\"\n ],\n \"city\": \"Minneapolis\",\n \"state\": \"MN\",\n \"zip\": \"55401\"\n },\n \"contactPoints\": [\n {\n \"value\": \"9525551234\",\n \"contactPointSystem\": \"PHONE\",\n \"contactPointUse\": \"HOME\"\n }\n ]\n },\n \"upcomingAppointmentDate\": \"2024-11-05\",\n \"upcomingAppointmentProvider\": {\n \"npi\": \"1414912117\",\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n }\n },\n \"clinicName\": \"Simple Clinic Name\",\n \"clinicNpi\": \"1414912117\",\n \"responseDirectAddress\": \"contact@yourdomain.com\",\n \"responseFaxNumber\": \"6125551234\",\n \"responseFriendlyName\": \"Heart Clinic\",\n \"batchId\": \"BATCH-123\",\n \"activeIcd10Diagnoses\": [\n {\n \"code\": \"E66.01\",\n \"displayName\": \"Morbid (severe) obesity due to excess calories\",\n \"date\": \"2022-12-12\"\n }\n ],\n \"activeIcd9Diagnoses\": [\n {\n \"code\": \"401.1\",\n \"displayName\": \"Benign essential hypertension\",\n \"date\": \"2023-12-12\"\n }\n ],\n \"activeSnomedDiagnoses\": [\n {\n \"code\": \"34713006\",\n \"displayName\": \"Vitamin D deficiency\",\n \"date\": \"2023-11-12\"\n }\n ],\n \"medications\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ],\n \"clinicalNotes\": [\n {\n \"lines\": [\n \"The patient was pleasant\",\n \"Recommend following up in 2 weeks\"\n ],\n \"date\": \"2022-12-12\",\n \"code\": {\n \"code\": \"11506-3\",\n \"codeSystem\": \"2.16.840.1.113883.6.1\",\n \"codeSystemName\": \"LOINC\",\n \"displayName\": \"Progress Note\"\n }\n }\n ],\n \"directives\": {\n \"newPatient\": false,\n \"diagnosticCategories\": {\n \"autoimmune\": false,\n \"bariatric\": false,\n \"behavioral\": false,\n \"cardiovascular\": false,\n \"dental\": false,\n \"dermatological\": false,\n \"endocrinological\": false,\n \"gastroenterological\": false,\n \"generalInformation\": false,\n \"generalSurgery\": false,\n \"hematological\": false,\n \"infectious\": false,\n \"lymphatic\": false,\n \"mens\": false,\n \"metabolic\": false,\n \"musculoskeletal\": false,\n \"neonatological\": false,\n \"neurological\": false,\n \"nutritional\": false,\n \"oncological\": false,\n \"ophthalmic\": false,\n \"otolaryngological\": false,\n \"pain\": false,\n \"postSurgery\": false,\n \"pulmonary\": false,\n \"renal\": false,\n \"spinal\": false,\n \"stroke\": false,\n \"toxicological\": false,\n \"urological\": false,\n \"womens\": false\n },\n \"medicationsOfInterest\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"correlationId": "9e923da0-f3cb-4d2b-9fbb-17417104ffd0"
}{
"message": "<string>",
"_links": {
"empty": true
},
"_embedded": {
"empty": true
},
"logref": "<unknown>",
"path": "<unknown>"
}{
"correlationId": "9e923da0-f3cb-4d2b-9fbb-17417104ffd0"
}{
"correlationId": "9e923da0-f3cb-4d2b-9fbb-17417104ffd0"
}Patient Data v1
Data Requirements
Populate all known data. It is required for processing that as much information as possible is supplied.
All active clinical information for a patient should be supplied in every API request. That information is used to satisfy reciprocity requirements of the various health information exchanges that Connective Health participates in. Failure to populate known clinical information for a patient is a violation of health information exchange reciprocity rules, and may result in the termination of information exchange.
Overview
Standard processing for clinical patient information, both summarized and complete information is supported.
curl --request POST \
--url https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"patient": {
"mrn": {
"root": "1.2.3.4",
"extension": "ABC123"
},
"name": {
"family": "Johnson",
"given": [
"John",
"Aaron"
],
"prefix": "Mr.",
"suffix": "Jr."
},
"birthDate": "1992-04-09",
"address": {
"lines": [
"123 Main St",
"Suite 517"
],
"city": "Minneapolis",
"state": "MN",
"zip": "55401"
},
"contactPoints": [
{
"value": "9525551234",
"contactPointSystem": "PHONE",
"contactPointUse": "HOME"
}
]
},
"upcomingAppointmentDate": "2024-11-05",
"upcomingAppointmentProvider": {
"npi": "1414912117",
"name": {
"family": "Johnson",
"given": [
"John",
"Aaron"
],
"prefix": "Mr.",
"suffix": "Jr."
}
},
"clinicName": "Simple Clinic Name",
"clinicNpi": "1414912117",
"responseDirectAddress": "contact@yourdomain.com",
"responseFaxNumber": "6125551234",
"responseFriendlyName": "Heart Clinic",
"batchId": "BATCH-123",
"activeIcd10Diagnoses": [
{
"code": "E66.01",
"displayName": "Morbid (severe) obesity due to excess calories",
"date": "2022-12-12"
}
],
"activeIcd9Diagnoses": [
{
"code": "401.1",
"displayName": "Benign essential hypertension",
"date": "2023-12-12"
}
],
"activeSnomedDiagnoses": [
{
"code": "34713006",
"displayName": "Vitamin D deficiency",
"date": "2023-11-12"
}
],
"medications": [
{
"active": true,
"nameCode": {
"code": "6809",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN"
},
"classCode": {
"code": "N0000175565",
"codeSystem": "2.16.840.1.113883.6.345",
"codeSystemName": "MED-RT",
"displayName": "Biguanide"
},
"scheduleCode": {
"code": "IV",
"codeSystem": "2.16.840.1.113883.12.477",
"codeSystemName": "Controlled Substance Schedule",
"displayName": "Schedule IV"
},
"medicationRequests": [
{
"code": {
"code": "861007",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN hydrochloride 500 MG Oral Tablet"
},
"form": {
"code": "C42998",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "tablet"
},
"route": {
"code": "C38288",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "oral"
},
"prescribedDate": "2023-12-02",
"initialFillQuantity": 10,
"numberOfRefillsAllowed": 0,
"timingEvent": "QD",
"frequencyUnit": "d",
"frequencyValue": 1,
"dosageInstruction": {
"text": "take 1 tablet by mouth once daily",
"strengthUnit": "mg",
"strengthValue": 100,
"amountUnit": "puffs",
"amountValue": 2
}
}
]
}
],
"clinicalNotes": [
{
"lines": [
"The patient was pleasant",
"Recommend following up in 2 weeks"
],
"date": "2022-12-12",
"code": {
"code": "11506-3",
"codeSystem": "2.16.840.1.113883.6.1",
"codeSystemName": "LOINC",
"displayName": "Progress Note"
}
}
],
"directives": {
"newPatient": false,
"diagnosticCategories": {
"autoimmune": false,
"bariatric": false,
"behavioral": false,
"cardiovascular": false,
"dental": false,
"dermatological": false,
"endocrinological": false,
"gastroenterological": false,
"generalInformation": false,
"generalSurgery": false,
"hematological": false,
"infectious": false,
"lymphatic": false,
"mens": false,
"metabolic": false,
"musculoskeletal": false,
"neonatological": false,
"neurological": false,
"nutritional": false,
"oncological": false,
"ophthalmic": false,
"otolaryngological": false,
"pain": false,
"postSurgery": false,
"pulmonary": false,
"renal": false,
"spinal": false,
"stroke": false,
"toxicological": false,
"urological": false,
"womens": false
},
"medicationsOfInterest": [
{
"active": true,
"nameCode": {
"code": "6809",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN"
},
"classCode": {
"code": "N0000175565",
"codeSystem": "2.16.840.1.113883.6.345",
"codeSystemName": "MED-RT",
"displayName": "Biguanide"
},
"scheduleCode": {
"code": "IV",
"codeSystem": "2.16.840.1.113883.12.477",
"codeSystemName": "Controlled Substance Schedule",
"displayName": "Schedule IV"
},
"medicationRequests": [
{
"code": {
"code": "861007",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN hydrochloride 500 MG Oral Tablet"
},
"form": {
"code": "C42998",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "tablet"
},
"route": {
"code": "C38288",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "oral"
},
"prescribedDate": "2023-12-02",
"initialFillQuantity": 10,
"numberOfRefillsAllowed": 0,
"timingEvent": "QD",
"frequencyUnit": "d",
"frequencyValue": 1,
"dosageInstruction": {
"text": "take 1 tablet by mouth once daily",
"strengthUnit": "mg",
"strengthValue": 100,
"amountUnit": "puffs",
"amountValue": 2
}
}
]
}
]
}
}
'import requests
url = "https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment"
payload = {
"patient": {
"mrn": {
"root": "1.2.3.4",
"extension": "ABC123"
},
"name": {
"family": "Johnson",
"given": ["John", "Aaron"],
"prefix": "Mr.",
"suffix": "Jr."
},
"birthDate": "1992-04-09",
"address": {
"lines": ["123 Main St", "Suite 517"],
"city": "Minneapolis",
"state": "MN",
"zip": "55401"
},
"contactPoints": [
{
"value": "9525551234",
"contactPointSystem": "PHONE",
"contactPointUse": "HOME"
}
]
},
"upcomingAppointmentDate": "2024-11-05",
"upcomingAppointmentProvider": {
"npi": "1414912117",
"name": {
"family": "Johnson",
"given": ["John", "Aaron"],
"prefix": "Mr.",
"suffix": "Jr."
}
},
"clinicName": "Simple Clinic Name",
"clinicNpi": "1414912117",
"responseDirectAddress": "contact@yourdomain.com",
"responseFaxNumber": "6125551234",
"responseFriendlyName": "Heart Clinic",
"batchId": "BATCH-123",
"activeIcd10Diagnoses": [
{
"code": "E66.01",
"displayName": "Morbid (severe) obesity due to excess calories",
"date": "2022-12-12"
}
],
"activeIcd9Diagnoses": [
{
"code": "401.1",
"displayName": "Benign essential hypertension",
"date": "2023-12-12"
}
],
"activeSnomedDiagnoses": [
{
"code": "34713006",
"displayName": "Vitamin D deficiency",
"date": "2023-11-12"
}
],
"medications": [
{
"active": True,
"nameCode": {
"code": "6809",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN"
},
"classCode": {
"code": "N0000175565",
"codeSystem": "2.16.840.1.113883.6.345",
"codeSystemName": "MED-RT",
"displayName": "Biguanide"
},
"scheduleCode": {
"code": "IV",
"codeSystem": "2.16.840.1.113883.12.477",
"codeSystemName": "Controlled Substance Schedule",
"displayName": "Schedule IV"
},
"medicationRequests": [
{
"code": {
"code": "861007",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN hydrochloride 500 MG Oral Tablet"
},
"form": {
"code": "C42998",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "tablet"
},
"route": {
"code": "C38288",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "oral"
},
"prescribedDate": "2023-12-02",
"initialFillQuantity": 10,
"numberOfRefillsAllowed": 0,
"timingEvent": "QD",
"frequencyUnit": "d",
"frequencyValue": 1,
"dosageInstruction": {
"text": "take 1 tablet by mouth once daily",
"strengthUnit": "mg",
"strengthValue": 100,
"amountUnit": "puffs",
"amountValue": 2
}
}
]
}
],
"clinicalNotes": [
{
"lines": ["The patient was pleasant", "Recommend following up in 2 weeks"],
"date": "2022-12-12",
"code": {
"code": "11506-3",
"codeSystem": "2.16.840.1.113883.6.1",
"codeSystemName": "LOINC",
"displayName": "Progress Note"
}
}
],
"directives": {
"newPatient": False,
"diagnosticCategories": {
"autoimmune": False,
"bariatric": False,
"behavioral": False,
"cardiovascular": False,
"dental": False,
"dermatological": False,
"endocrinological": False,
"gastroenterological": False,
"generalInformation": False,
"generalSurgery": False,
"hematological": False,
"infectious": False,
"lymphatic": False,
"mens": False,
"metabolic": False,
"musculoskeletal": False,
"neonatological": False,
"neurological": False,
"nutritional": False,
"oncological": False,
"ophthalmic": False,
"otolaryngological": False,
"pain": False,
"postSurgery": False,
"pulmonary": False,
"renal": False,
"spinal": False,
"stroke": False,
"toxicological": False,
"urological": False,
"womens": False
},
"medicationsOfInterest": [
{
"active": True,
"nameCode": {
"code": "6809",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN"
},
"classCode": {
"code": "N0000175565",
"codeSystem": "2.16.840.1.113883.6.345",
"codeSystemName": "MED-RT",
"displayName": "Biguanide"
},
"scheduleCode": {
"code": "IV",
"codeSystem": "2.16.840.1.113883.12.477",
"codeSystemName": "Controlled Substance Schedule",
"displayName": "Schedule IV"
},
"medicationRequests": [
{
"code": {
"code": "861007",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"displayName": "metFORMIN hydrochloride 500 MG Oral Tablet"
},
"form": {
"code": "C42998",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "tablet"
},
"route": {
"code": "C38288",
"codeSystem": "2.16.840.1.113883.3.26.1.1",
"codeSystemName": "NCI Thesaurus",
"displayName": "oral"
},
"prescribedDate": "2023-12-02",
"initialFillQuantity": 10,
"numberOfRefillsAllowed": 0,
"timingEvent": "QD",
"frequencyUnit": "d",
"frequencyValue": 1,
"dosageInstruction": {
"text": "take 1 tablet by mouth once daily",
"strengthUnit": "mg",
"strengthValue": 100,
"amountUnit": "puffs",
"amountValue": 2
}
}
]
}
]
}
}
headers = {
"apiKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apiKey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
patient: {
mrn: {root: '1.2.3.4', extension: 'ABC123'},
name: {family: 'Johnson', given: ['John', 'Aaron'], prefix: 'Mr.', suffix: 'Jr.'},
birthDate: '1992-04-09',
address: {
lines: ['123 Main St', 'Suite 517'],
city: 'Minneapolis',
state: 'MN',
zip: '55401'
},
contactPoints: [{value: '9525551234', contactPointSystem: 'PHONE', contactPointUse: 'HOME'}]
},
upcomingAppointmentDate: '2024-11-05',
upcomingAppointmentProvider: {
npi: '1414912117',
name: {family: 'Johnson', given: ['John', 'Aaron'], prefix: 'Mr.', suffix: 'Jr.'}
},
clinicName: 'Simple Clinic Name',
clinicNpi: '1414912117',
responseDirectAddress: 'contact@yourdomain.com',
responseFaxNumber: '6125551234',
responseFriendlyName: 'Heart Clinic',
batchId: 'BATCH-123',
activeIcd10Diagnoses: [
{
code: 'E66.01',
displayName: 'Morbid (severe) obesity due to excess calories',
date: '2022-12-12'
}
],
activeIcd9Diagnoses: [
{
code: '401.1',
displayName: 'Benign essential hypertension',
date: '2023-12-12'
}
],
activeSnomedDiagnoses: [{code: '34713006', displayName: 'Vitamin D deficiency', date: '2023-11-12'}],
medications: [
{
active: true,
nameCode: {
code: '6809',
codeSystem: '2.16.840.1.113883.6.88',
codeSystemName: 'RxNorm',
displayName: 'metFORMIN'
},
classCode: {
code: 'N0000175565',
codeSystem: '2.16.840.1.113883.6.345',
codeSystemName: 'MED-RT',
displayName: 'Biguanide'
},
scheduleCode: {
code: 'IV',
codeSystem: '2.16.840.1.113883.12.477',
codeSystemName: 'Controlled Substance Schedule',
displayName: 'Schedule IV'
},
medicationRequests: [
{
code: {
code: '861007',
codeSystem: '2.16.840.1.113883.6.88',
codeSystemName: 'RxNorm',
displayName: 'metFORMIN hydrochloride 500 MG Oral Tablet'
},
form: {
code: 'C42998',
codeSystem: '2.16.840.1.113883.3.26.1.1',
codeSystemName: 'NCI Thesaurus',
displayName: 'tablet'
},
route: {
code: 'C38288',
codeSystem: '2.16.840.1.113883.3.26.1.1',
codeSystemName: 'NCI Thesaurus',
displayName: 'oral'
},
prescribedDate: '2023-12-02',
initialFillQuantity: 10,
numberOfRefillsAllowed: 0,
timingEvent: 'QD',
frequencyUnit: 'd',
frequencyValue: 1,
dosageInstruction: {
text: 'take 1 tablet by mouth once daily',
strengthUnit: 'mg',
strengthValue: 100,
amountUnit: 'puffs',
amountValue: 2
}
}
]
}
],
clinicalNotes: [
{
lines: ['The patient was pleasant', 'Recommend following up in 2 weeks'],
date: '2022-12-12',
code: {
code: '11506-3',
codeSystem: '2.16.840.1.113883.6.1',
codeSystemName: 'LOINC',
displayName: 'Progress Note'
}
}
],
directives: {
newPatient: false,
diagnosticCategories: {
autoimmune: false,
bariatric: false,
behavioral: false,
cardiovascular: false,
dental: false,
dermatological: false,
endocrinological: false,
gastroenterological: false,
generalInformation: false,
generalSurgery: false,
hematological: false,
infectious: false,
lymphatic: false,
mens: false,
metabolic: false,
musculoskeletal: false,
neonatological: false,
neurological: false,
nutritional: false,
oncological: false,
ophthalmic: false,
otolaryngological: false,
pain: false,
postSurgery: false,
pulmonary: false,
renal: false,
spinal: false,
stroke: false,
toxicological: false,
urological: false,
womens: false
},
medicationsOfInterest: [
{
active: true,
nameCode: {
code: '6809',
codeSystem: '2.16.840.1.113883.6.88',
codeSystemName: 'RxNorm',
displayName: 'metFORMIN'
},
classCode: {
code: 'N0000175565',
codeSystem: '2.16.840.1.113883.6.345',
codeSystemName: 'MED-RT',
displayName: 'Biguanide'
},
scheduleCode: {
code: 'IV',
codeSystem: '2.16.840.1.113883.12.477',
codeSystemName: 'Controlled Substance Schedule',
displayName: 'Schedule IV'
},
medicationRequests: [
{
code: {
code: '861007',
codeSystem: '2.16.840.1.113883.6.88',
codeSystemName: 'RxNorm',
displayName: 'metFORMIN hydrochloride 500 MG Oral Tablet'
},
form: {
code: 'C42998',
codeSystem: '2.16.840.1.113883.3.26.1.1',
codeSystemName: 'NCI Thesaurus',
displayName: 'tablet'
},
route: {
code: 'C38288',
codeSystem: '2.16.840.1.113883.3.26.1.1',
codeSystemName: 'NCI Thesaurus',
displayName: 'oral'
},
prescribedDate: '2023-12-02',
initialFillQuantity: 10,
numberOfRefillsAllowed: 0,
timingEvent: 'QD',
frequencyUnit: 'd',
frequencyValue: 1,
dosageInstruction: {
text: 'take 1 tablet by mouth once daily',
strengthUnit: 'mg',
strengthValue: 100,
amountUnit: 'puffs',
amountValue: 2
}
}
]
}
]
}
})
};
fetch('https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'patient' => [
'mrn' => [
'root' => '1.2.3.4',
'extension' => 'ABC123'
],
'name' => [
'family' => 'Johnson',
'given' => [
'John',
'Aaron'
],
'prefix' => 'Mr.',
'suffix' => 'Jr.'
],
'birthDate' => '1992-04-09',
'address' => [
'lines' => [
'123 Main St',
'Suite 517'
],
'city' => 'Minneapolis',
'state' => 'MN',
'zip' => '55401'
],
'contactPoints' => [
[
'value' => '9525551234',
'contactPointSystem' => 'PHONE',
'contactPointUse' => 'HOME'
]
]
],
'upcomingAppointmentDate' => '2024-11-05',
'upcomingAppointmentProvider' => [
'npi' => '1414912117',
'name' => [
'family' => 'Johnson',
'given' => [
'John',
'Aaron'
],
'prefix' => 'Mr.',
'suffix' => 'Jr.'
]
],
'clinicName' => 'Simple Clinic Name',
'clinicNpi' => '1414912117',
'responseDirectAddress' => 'contact@yourdomain.com',
'responseFaxNumber' => '6125551234',
'responseFriendlyName' => 'Heart Clinic',
'batchId' => 'BATCH-123',
'activeIcd10Diagnoses' => [
[
'code' => 'E66.01',
'displayName' => 'Morbid (severe) obesity due to excess calories',
'date' => '2022-12-12'
]
],
'activeIcd9Diagnoses' => [
[
'code' => '401.1',
'displayName' => 'Benign essential hypertension',
'date' => '2023-12-12'
]
],
'activeSnomedDiagnoses' => [
[
'code' => '34713006',
'displayName' => 'Vitamin D deficiency',
'date' => '2023-11-12'
]
],
'medications' => [
[
'active' => true,
'nameCode' => [
'code' => '6809',
'codeSystem' => '2.16.840.1.113883.6.88',
'codeSystemName' => 'RxNorm',
'displayName' => 'metFORMIN'
],
'classCode' => [
'code' => 'N0000175565',
'codeSystem' => '2.16.840.1.113883.6.345',
'codeSystemName' => 'MED-RT',
'displayName' => 'Biguanide'
],
'scheduleCode' => [
'code' => 'IV',
'codeSystem' => '2.16.840.1.113883.12.477',
'codeSystemName' => 'Controlled Substance Schedule',
'displayName' => 'Schedule IV'
],
'medicationRequests' => [
[
'code' => [
'code' => '861007',
'codeSystem' => '2.16.840.1.113883.6.88',
'codeSystemName' => 'RxNorm',
'displayName' => 'metFORMIN hydrochloride 500 MG Oral Tablet'
],
'form' => [
'code' => 'C42998',
'codeSystem' => '2.16.840.1.113883.3.26.1.1',
'codeSystemName' => 'NCI Thesaurus',
'displayName' => 'tablet'
],
'route' => [
'code' => 'C38288',
'codeSystem' => '2.16.840.1.113883.3.26.1.1',
'codeSystemName' => 'NCI Thesaurus',
'displayName' => 'oral'
],
'prescribedDate' => '2023-12-02',
'initialFillQuantity' => 10,
'numberOfRefillsAllowed' => 0,
'timingEvent' => 'QD',
'frequencyUnit' => 'd',
'frequencyValue' => 1,
'dosageInstruction' => [
'text' => 'take 1 tablet by mouth once daily',
'strengthUnit' => 'mg',
'strengthValue' => 100,
'amountUnit' => 'puffs',
'amountValue' => 2
]
]
]
]
],
'clinicalNotes' => [
[
'lines' => [
'The patient was pleasant',
'Recommend following up in 2 weeks'
],
'date' => '2022-12-12',
'code' => [
'code' => '11506-3',
'codeSystem' => '2.16.840.1.113883.6.1',
'codeSystemName' => 'LOINC',
'displayName' => 'Progress Note'
]
]
],
'directives' => [
'newPatient' => false,
'diagnosticCategories' => [
'autoimmune' => false,
'bariatric' => false,
'behavioral' => false,
'cardiovascular' => false,
'dental' => false,
'dermatological' => false,
'endocrinological' => false,
'gastroenterological' => false,
'generalInformation' => false,
'generalSurgery' => false,
'hematological' => false,
'infectious' => false,
'lymphatic' => false,
'mens' => false,
'metabolic' => false,
'musculoskeletal' => false,
'neonatological' => false,
'neurological' => false,
'nutritional' => false,
'oncological' => false,
'ophthalmic' => false,
'otolaryngological' => false,
'pain' => false,
'postSurgery' => false,
'pulmonary' => false,
'renal' => false,
'spinal' => false,
'stroke' => false,
'toxicological' => false,
'urological' => false,
'womens' => false
],
'medicationsOfInterest' => [
[
'active' => true,
'nameCode' => [
'code' => '6809',
'codeSystem' => '2.16.840.1.113883.6.88',
'codeSystemName' => 'RxNorm',
'displayName' => 'metFORMIN'
],
'classCode' => [
'code' => 'N0000175565',
'codeSystem' => '2.16.840.1.113883.6.345',
'codeSystemName' => 'MED-RT',
'displayName' => 'Biguanide'
],
'scheduleCode' => [
'code' => 'IV',
'codeSystem' => '2.16.840.1.113883.12.477',
'codeSystemName' => 'Controlled Substance Schedule',
'displayName' => 'Schedule IV'
],
'medicationRequests' => [
[
'code' => [
'code' => '861007',
'codeSystem' => '2.16.840.1.113883.6.88',
'codeSystemName' => 'RxNorm',
'displayName' => 'metFORMIN hydrochloride 500 MG Oral Tablet'
],
'form' => [
'code' => 'C42998',
'codeSystem' => '2.16.840.1.113883.3.26.1.1',
'codeSystemName' => 'NCI Thesaurus',
'displayName' => 'tablet'
],
'route' => [
'code' => 'C38288',
'codeSystem' => '2.16.840.1.113883.3.26.1.1',
'codeSystemName' => 'NCI Thesaurus',
'displayName' => 'oral'
],
'prescribedDate' => '2023-12-02',
'initialFillQuantity' => 10,
'numberOfRefillsAllowed' => 0,
'timingEvent' => 'QD',
'frequencyUnit' => 'd',
'frequencyValue' => 1,
'dosageInstruction' => [
'text' => 'take 1 tablet by mouth once daily',
'strengthUnit' => 'mg',
'strengthValue' => 100,
'amountUnit' => 'puffs',
'amountValue' => 2
]
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apiKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment"
payload := strings.NewReader("{\n \"patient\": {\n \"mrn\": {\n \"root\": \"1.2.3.4\",\n \"extension\": \"ABC123\"\n },\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n },\n \"birthDate\": \"1992-04-09\",\n \"address\": {\n \"lines\": [\n \"123 Main St\",\n \"Suite 517\"\n ],\n \"city\": \"Minneapolis\",\n \"state\": \"MN\",\n \"zip\": \"55401\"\n },\n \"contactPoints\": [\n {\n \"value\": \"9525551234\",\n \"contactPointSystem\": \"PHONE\",\n \"contactPointUse\": \"HOME\"\n }\n ]\n },\n \"upcomingAppointmentDate\": \"2024-11-05\",\n \"upcomingAppointmentProvider\": {\n \"npi\": \"1414912117\",\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n }\n },\n \"clinicName\": \"Simple Clinic Name\",\n \"clinicNpi\": \"1414912117\",\n \"responseDirectAddress\": \"contact@yourdomain.com\",\n \"responseFaxNumber\": \"6125551234\",\n \"responseFriendlyName\": \"Heart Clinic\",\n \"batchId\": \"BATCH-123\",\n \"activeIcd10Diagnoses\": [\n {\n \"code\": \"E66.01\",\n \"displayName\": \"Morbid (severe) obesity due to excess calories\",\n \"date\": \"2022-12-12\"\n }\n ],\n \"activeIcd9Diagnoses\": [\n {\n \"code\": \"401.1\",\n \"displayName\": \"Benign essential hypertension\",\n \"date\": \"2023-12-12\"\n }\n ],\n \"activeSnomedDiagnoses\": [\n {\n \"code\": \"34713006\",\n \"displayName\": \"Vitamin D deficiency\",\n \"date\": \"2023-11-12\"\n }\n ],\n \"medications\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ],\n \"clinicalNotes\": [\n {\n \"lines\": [\n \"The patient was pleasant\",\n \"Recommend following up in 2 weeks\"\n ],\n \"date\": \"2022-12-12\",\n \"code\": {\n \"code\": \"11506-3\",\n \"codeSystem\": \"2.16.840.1.113883.6.1\",\n \"codeSystemName\": \"LOINC\",\n \"displayName\": \"Progress Note\"\n }\n }\n ],\n \"directives\": {\n \"newPatient\": false,\n \"diagnosticCategories\": {\n \"autoimmune\": false,\n \"bariatric\": false,\n \"behavioral\": false,\n \"cardiovascular\": false,\n \"dental\": false,\n \"dermatological\": false,\n \"endocrinological\": false,\n \"gastroenterological\": false,\n \"generalInformation\": false,\n \"generalSurgery\": false,\n \"hematological\": false,\n \"infectious\": false,\n \"lymphatic\": false,\n \"mens\": false,\n \"metabolic\": false,\n \"musculoskeletal\": false,\n \"neonatological\": false,\n \"neurological\": false,\n \"nutritional\": false,\n \"oncological\": false,\n \"ophthalmic\": false,\n \"otolaryngological\": false,\n \"pain\": false,\n \"postSurgery\": false,\n \"pulmonary\": false,\n \"renal\": false,\n \"spinal\": false,\n \"stroke\": false,\n \"toxicological\": false,\n \"urological\": false,\n \"womens\": false\n },\n \"medicationsOfInterest\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment")
.header("apiKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"patient\": {\n \"mrn\": {\n \"root\": \"1.2.3.4\",\n \"extension\": \"ABC123\"\n },\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n },\n \"birthDate\": \"1992-04-09\",\n \"address\": {\n \"lines\": [\n \"123 Main St\",\n \"Suite 517\"\n ],\n \"city\": \"Minneapolis\",\n \"state\": \"MN\",\n \"zip\": \"55401\"\n },\n \"contactPoints\": [\n {\n \"value\": \"9525551234\",\n \"contactPointSystem\": \"PHONE\",\n \"contactPointUse\": \"HOME\"\n }\n ]\n },\n \"upcomingAppointmentDate\": \"2024-11-05\",\n \"upcomingAppointmentProvider\": {\n \"npi\": \"1414912117\",\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n }\n },\n \"clinicName\": \"Simple Clinic Name\",\n \"clinicNpi\": \"1414912117\",\n \"responseDirectAddress\": \"contact@yourdomain.com\",\n \"responseFaxNumber\": \"6125551234\",\n \"responseFriendlyName\": \"Heart Clinic\",\n \"batchId\": \"BATCH-123\",\n \"activeIcd10Diagnoses\": [\n {\n \"code\": \"E66.01\",\n \"displayName\": \"Morbid (severe) obesity due to excess calories\",\n \"date\": \"2022-12-12\"\n }\n ],\n \"activeIcd9Diagnoses\": [\n {\n \"code\": \"401.1\",\n \"displayName\": \"Benign essential hypertension\",\n \"date\": \"2023-12-12\"\n }\n ],\n \"activeSnomedDiagnoses\": [\n {\n \"code\": \"34713006\",\n \"displayName\": \"Vitamin D deficiency\",\n \"date\": \"2023-11-12\"\n }\n ],\n \"medications\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ],\n \"clinicalNotes\": [\n {\n \"lines\": [\n \"The patient was pleasant\",\n \"Recommend following up in 2 weeks\"\n ],\n \"date\": \"2022-12-12\",\n \"code\": {\n \"code\": \"11506-3\",\n \"codeSystem\": \"2.16.840.1.113883.6.1\",\n \"codeSystemName\": \"LOINC\",\n \"displayName\": \"Progress Note\"\n }\n }\n ],\n \"directives\": {\n \"newPatient\": false,\n \"diagnosticCategories\": {\n \"autoimmune\": false,\n \"bariatric\": false,\n \"behavioral\": false,\n \"cardiovascular\": false,\n \"dental\": false,\n \"dermatological\": false,\n \"endocrinological\": false,\n \"gastroenterological\": false,\n \"generalInformation\": false,\n \"generalSurgery\": false,\n \"hematological\": false,\n \"infectious\": false,\n \"lymphatic\": false,\n \"mens\": false,\n \"metabolic\": false,\n \"musculoskeletal\": false,\n \"neonatological\": false,\n \"neurological\": false,\n \"nutritional\": false,\n \"oncological\": false,\n \"ophthalmic\": false,\n \"otolaryngological\": false,\n \"pain\": false,\n \"postSurgery\": false,\n \"pulmonary\": false,\n \"renal\": false,\n \"spinal\": false,\n \"stroke\": false,\n \"toxicological\": false,\n \"urological\": false,\n \"womens\": false\n },\n \"medicationsOfInterest\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://processing-request-staging.connectivehealth.io/v1/scheduled-appointment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apiKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"patient\": {\n \"mrn\": {\n \"root\": \"1.2.3.4\",\n \"extension\": \"ABC123\"\n },\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n },\n \"birthDate\": \"1992-04-09\",\n \"address\": {\n \"lines\": [\n \"123 Main St\",\n \"Suite 517\"\n ],\n \"city\": \"Minneapolis\",\n \"state\": \"MN\",\n \"zip\": \"55401\"\n },\n \"contactPoints\": [\n {\n \"value\": \"9525551234\",\n \"contactPointSystem\": \"PHONE\",\n \"contactPointUse\": \"HOME\"\n }\n ]\n },\n \"upcomingAppointmentDate\": \"2024-11-05\",\n \"upcomingAppointmentProvider\": {\n \"npi\": \"1414912117\",\n \"name\": {\n \"family\": \"Johnson\",\n \"given\": [\n \"John\",\n \"Aaron\"\n ],\n \"prefix\": \"Mr.\",\n \"suffix\": \"Jr.\"\n }\n },\n \"clinicName\": \"Simple Clinic Name\",\n \"clinicNpi\": \"1414912117\",\n \"responseDirectAddress\": \"contact@yourdomain.com\",\n \"responseFaxNumber\": \"6125551234\",\n \"responseFriendlyName\": \"Heart Clinic\",\n \"batchId\": \"BATCH-123\",\n \"activeIcd10Diagnoses\": [\n {\n \"code\": \"E66.01\",\n \"displayName\": \"Morbid (severe) obesity due to excess calories\",\n \"date\": \"2022-12-12\"\n }\n ],\n \"activeIcd9Diagnoses\": [\n {\n \"code\": \"401.1\",\n \"displayName\": \"Benign essential hypertension\",\n \"date\": \"2023-12-12\"\n }\n ],\n \"activeSnomedDiagnoses\": [\n {\n \"code\": \"34713006\",\n \"displayName\": \"Vitamin D deficiency\",\n \"date\": \"2023-11-12\"\n }\n ],\n \"medications\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ],\n \"clinicalNotes\": [\n {\n \"lines\": [\n \"The patient was pleasant\",\n \"Recommend following up in 2 weeks\"\n ],\n \"date\": \"2022-12-12\",\n \"code\": {\n \"code\": \"11506-3\",\n \"codeSystem\": \"2.16.840.1.113883.6.1\",\n \"codeSystemName\": \"LOINC\",\n \"displayName\": \"Progress Note\"\n }\n }\n ],\n \"directives\": {\n \"newPatient\": false,\n \"diagnosticCategories\": {\n \"autoimmune\": false,\n \"bariatric\": false,\n \"behavioral\": false,\n \"cardiovascular\": false,\n \"dental\": false,\n \"dermatological\": false,\n \"endocrinological\": false,\n \"gastroenterological\": false,\n \"generalInformation\": false,\n \"generalSurgery\": false,\n \"hematological\": false,\n \"infectious\": false,\n \"lymphatic\": false,\n \"mens\": false,\n \"metabolic\": false,\n \"musculoskeletal\": false,\n \"neonatological\": false,\n \"neurological\": false,\n \"nutritional\": false,\n \"oncological\": false,\n \"ophthalmic\": false,\n \"otolaryngological\": false,\n \"pain\": false,\n \"postSurgery\": false,\n \"pulmonary\": false,\n \"renal\": false,\n \"spinal\": false,\n \"stroke\": false,\n \"toxicological\": false,\n \"urological\": false,\n \"womens\": false\n },\n \"medicationsOfInterest\": [\n {\n \"active\": true,\n \"nameCode\": {\n \"code\": \"6809\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN\"\n },\n \"classCode\": {\n \"code\": \"N0000175565\",\n \"codeSystem\": \"2.16.840.1.113883.6.345\",\n \"codeSystemName\": \"MED-RT\",\n \"displayName\": \"Biguanide\"\n },\n \"scheduleCode\": {\n \"code\": \"IV\",\n \"codeSystem\": \"2.16.840.1.113883.12.477\",\n \"codeSystemName\": \"Controlled Substance Schedule\",\n \"displayName\": \"Schedule IV\"\n },\n \"medicationRequests\": [\n {\n \"code\": {\n \"code\": \"861007\",\n \"codeSystem\": \"2.16.840.1.113883.6.88\",\n \"codeSystemName\": \"RxNorm\",\n \"displayName\": \"metFORMIN hydrochloride 500 MG Oral Tablet\"\n },\n \"form\": {\n \"code\": \"C42998\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"tablet\"\n },\n \"route\": {\n \"code\": \"C38288\",\n \"codeSystem\": \"2.16.840.1.113883.3.26.1.1\",\n \"codeSystemName\": \"NCI Thesaurus\",\n \"displayName\": \"oral\"\n },\n \"prescribedDate\": \"2023-12-02\",\n \"initialFillQuantity\": 10,\n \"numberOfRefillsAllowed\": 0,\n \"timingEvent\": \"QD\",\n \"frequencyUnit\": \"d\",\n \"frequencyValue\": 1,\n \"dosageInstruction\": {\n \"text\": \"take 1 tablet by mouth once daily\",\n \"strengthUnit\": \"mg\",\n \"strengthValue\": 100,\n \"amountUnit\": \"puffs\",\n \"amountValue\": 2\n }\n }\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"correlationId": "9e923da0-f3cb-4d2b-9fbb-17417104ffd0"
}{
"message": "<string>",
"_links": {
"empty": true
},
"_embedded": {
"empty": true
},
"logref": "<unknown>",
"path": "<unknown>"
}{
"correlationId": "9e923da0-f3cb-4d2b-9fbb-17417104ffd0"
}{
"correlationId": "9e923da0-f3cb-4d2b-9fbb-17417104ffd0"
}Authorizations
API Key
Body
Patient to be processed
Show child attributes
Show child attributes
Date of the appointment in ISO-8601 format yyyy-MM-dd
"2024-11-05"
A medical provider
Show child attributes
Show child attributes
Name of the clinic the patient is being seen at, or the organization requesting the data. Customer name will be used if not populated
[^<>"%;+@]*$"Simple Clinic Name"
Facility's NPI if known
10"1414912117"
Direct Address to return documents to. Typically, populate this OR responseFaxNumber
"contact@yourdomain.com"
Fax number to send response documents to. Typically, populate this OR responseDirectAddress
10"6125551234"
Human-readable name to send response message to
[^<>"%;+@]*$"Heart Clinic"
Identifier which can be used to logically group requests together. Do not populate if you do not need to group requests together. Will default to a UUID if not populated
[^<>"%;+@]*$"BATCH-123"
Processing hint which influences the inclusive date range for data returned on the medical summary. If this is used, at least one diagnostic category must also be enabled.
Show child attributes
Show child attributes
All active diagnoses (problems) known about the patient. Must all be ICD-10 codes. If the patient is an existing patient then this list should be populated with all known diagnoses
Show child attributes
Show child attributes
All active diagnoses (problems) known about the patient. Must all be ICD-9 codes. If the patient is an existing patient then this list should be populated with all known diagnoses. ICD-10 should be greatly preferred if available.
Show child attributes
Show child attributes
[
{
"code": "401.1",
"displayName": "Benign essential hypertension",
"date": "2023-12-12"
}
]
All active diagnoses (problems) known about the patient. Must all be SNOMED codes. If the patient is an existing patient then this list should be populated with all known diagnoses. ICD-10 should be greatly preferred if available.
Show child attributes
Show child attributes
[
{
"code": "34713006",
"displayName": "Vitamin D deficiency",
"date": "2023-11-12"
}
]
All known medications about the patient
Show child attributes
Show child attributes
Additional information provided about the patient
Show child attributes
Show child attributes
Directives which may influence how the data is processed
Show child attributes
Show child attributes
Response
Success
Unique Connective Health identifier to correlate subsequent processing or troubleshooting
"9e923da0-f3cb-4d2b-9fbb-17417104ffd0"
Was this page helpful?

