Visit

A Visit represents an encounter that takes place between a patient and a provider.\

Endpoint

https://platform.wellviasolutions.com/clinical/v1/visit\

The Visit Object

Attributes


id string : required

The unique identifier of the visit.


typeDetail object : required

Specifics around the type of visit.


type string : required

The unique type identifier specifying the type of visit. See the Visit Type Dictionary for possible values.


name string : required

The friendly name of the type of visit.


description string : optional

A brief description of the type of visit.


duration numeric : optional

The typical length of the visit, measured in minutes.


status string : required

The unique type identifier of the current status of the visit. See the Visit Status Dictionary for possible values.


dateCreated timestamp : required

The UTC timestamp of when the visit was requested.


communicationMethod string : required

The unique type identifier of the chosen communication method for this visit. See the Communication Method Dictionary for possible values.


assignments object : required

Details the assigned patient, provider, and other users who have access to participate in the visit.


patient object : required

The patient the visit is assigned to. This is a Visit Assignment Object.


requestedBy object : optional

The user that requested the visit on behalf of the patient. Typically populated when a parent requests a visit on behalf of a child. This is a Visit Assignment Object.


provider object : optional

The provider assigned to the visit. This is a Visit Assignment Object.


guests object : optional

Additional users that can participate in the visit. This is a list of Visit Assignment Objects.


reasonsForVisit list of strings : required

A list of symptoms or other reasons the patient requested the visit.


patientPhoneNumber string : required

The phone number provided by the patient when requesting the visit. This will return in E-164 format.


alternativeTreatmentMethod string : required

Where the patient stated they would have gone for treatment if this service was not available. See the Alternative Treatment Methods Dictionary for possible values.


patientLocation object : optional

Where the patient will be located during the visit.


stateProvince string : required

The state or province the user will be located in during the visit. US-based locations should follow the 2 character USPS code.


country string : required

The country the user will be located in during the visit. The country code is in ISO 3166-1 format. Default Value is "US".


dateSchedules list of objects : optional

A list of Visit Schedule Date Objects containing a list of requested and/or confirmed dates for the visit.


alternativeIds dictionary : optional

A dictionary containing a list of alternative unique identifiers for this visit. To guarantee uniqueness, the key and its' value should both be taken into consideration.


key string : required

A unique identifier for this visit.


value string : required

The type of identifier. See the Visit Identifier Type Dictionary for possible values.


pharmacy object : optional

The pharmacy that was selected at the time of request. This pharmacy will be used if a provider chooses to submit a prescription. This is a Pharmacy Object.


language string : required

The language that the patient requested at the time of request. Data is in the ISO 639-1 format.


outcome object : optional

Details around the clinical results of the visit. This data is not included by default, and is only available after a visit is completed. This is a Visit Outcome Object.


Example


{
	"id": "1234567",
	"typeDetail": {
		"type": "generalmedical",
		"name": "General Medical",
		"description": null,
		"duration": null
	},
	"status": "completed",
	"dateCreated": "2021-08-17T14:30:00.000",
	"communicationMethod": "phone",
	"assignments": {
		"patient": {
			"userId": "mem_78c0c8dabb5742bc96c256e56b1dc210",
			"firstName": "Jane",
			"lastName": "Doe",
			"userType": "member",
			"title": null
		},
		"requestedBy": null,
		"provider": {
			"userId": "prv_f49d22746d2a4643b72d4f7908dc2cb4",
			"firstName": "Susan",
			"lastName": "Smith",
			"userType": "medicalpractitioner",
			"title": "Dr."
		},
		"guests": []
	},
	"reasonsForVisit": [
		"Respiratory infection."
	],
	"patientPhoneNumber": "+15551234567",
	"alternativeTreatmentMethod": "urgentcare",
	"patientLocation": {
		"stateProvince": "TX",
		"country": "US"
	},
	"dateSchedules": {
		"2021-08-17T16:00:00.000" : "confirmed"
	},
	"alternativeIds": {
		"friendlyid": "1234567"
	},
	"pharmacy": {
		"id": "pharm_be0b8c4e7a36eb119fb400155dfc253f",
		"source": "surescripts",
		"name": "KROGER SOUTHWEST 584",
		"ncpdpid": "4574162",
		"npi": "1740353358",
		"storeNumber": "035584",
		"addressLine1": "3001 Matlock Rd",
		"addressLine2": "",
		"addressCity": "Mansfield",
		"addressState": "TX",
		"addressZip": "760633302",
		"addressCountryCode": "US",
		"addressCrossStreet": "",
		"phoneNumber": "8174730081",
		"faxNumber": "8174730972",
		"startDate": "2008-05-22T13:18:13",
		"endDate": "2099-05-22T13:18:13",
		"services": [
			"new",
			"refill",
			"controlledsubstance"
		],
		"specialties": [
			"retail"
		],
		"coordinatesLongitude": -97.11759,
		"coordinatesLatitude": 32.60718,
		"coordinatesPrecise": true
	},
	"language": "en-us",
	"outcome": {}
}

The Visit Assignment Object

Attributes


userId string : required

The unique identifier of the user.


firstName string : required

The first name of the user.


lastName string : required

The last name of the user.


userType string : required

The unique type identifier of the user. See the User Type Dictionary for possible values.


title string : optional

A given title of the user.


Example


{
	"userId": "prv_f49d22746d2a4643b72d4f7908dc2cb4",
	"firstName": "Susan",
	"lastName": "Smith",
	"userType": "medicalpractitioner",
	"title": "Dr."
}

The Visit Schedule Date Object

Attributes


timestamp timestamp : required

The UTC timestamp representing the chosen date.


status string : required

The status of this specific date. See the Visit Schedule Date Status Dictionary for possible values.


orderOfPreference numeric : required

The order of preference as requested by the user.


Example


{
	"timestamp": "2021-08-17T15:00:00.000",
	"status": "requested",
	"orderOfPreference": 1
},
{
	"timestamp": "2021-08-17T16:00:00.000",
	"status": "confirmed",
	"orderOfPreference": 2
},
{
	"timestamp": "2021-08-17T17:00:00.000",
	"status": "requested",
	"orderOfPreference": 3
}

The Visit Outcome Object

Attributes


prescriptions list of objects : optional

A list of prescriptions submitted by the provider as part of the treatment following this visit. This is a list of Prescription Object.


diagnoses list of objects : optional

A list of diagnoses identified by the provider as a result of the visit. This is a list of ICD-10 Objects.


procedures list of objects : optional

A list of procedures performed by the provider during the visit. This is a list of CPT Objects.


clinicalNotes list of objects : optional

A list of clinical notes attached to the visit.


type string : required

The clinical note type identifier. See the Clinical Note Type Dictionary for possible values.


note string : required

The clinical note.


Example


{
	"prescriptions": [
		{
			"id": "rx_eb5d400f06b0495fb558b53b53650966",
			"dateCreated": "2021-08-17T16:27:41.82",
			"visitId": "1234567",
			"pharmacyId": "pharm_6e0f8c4e7a36eb119fb400155dfc253f",
			"drug": {
				"name": "Medrol Dosepak 4mg Tablet",
				"upc": null,
				"ndC9": null,
				"ndC10": null,
				"ndC11": "00009005604",
				"availableQuantities": [],
				"quantityUnitOfMeasureCode": "C48542",
				"quantityUnitOfMeasureName": "Tablet",
				"rxNorm": null,
				"route": {
					"id": 1,
					"name": "Oral"
				},
				"strength": {
					"value": "4",
					"unit": {
						"code": "mg",
						"name": "milligram"
					},
					"formCode": "C42998",
					"unitOfMeasureCode": "C28253"
				},
				"form": {
					"fdaFormId": 37,
					"fdaFormName": "Tab",
					"description": "Tablet"
				},
				"drugKey": null
			},
			"quantity": 21.00000,
			"refillCount": 0,
			"daysSupply": null,
			"substitutionsAllowed": true,
			"directions": "Use as directed",
			"pharmacyNote": "",
			"wentByFax": false,
			"status": {
				"status": "accepted",
				"message": ""
			},
			"submission": {
				"method": "providertoeprescribe",
				"submittedByUserId": "prv_f49d22746d2a4643b72d4f7908dc2cb4"
			},
			"dateAccepted": "2021-08-17T16:27:41.82"
		}
	],
	"diagnoses": [
		{
			"code": "J06.9",
			"description": "Acute upper respiratory infection, unspecified"
		}
	],
	"procedures": [
		{
			"code": "99441",
			"description": "telephone E/M service; 5-10 minutes of medical discussion"
		}
	],
	"clinicalNotes": [
		{
			"type": "subjective",
			"note": "Subject: 38 y/o female c/o flu like symptoms, sore throat, watery eyes, productive cough with discoloration ,stuffy nose Onset- 4 days OTC- robitussin, Vicks, Tylenol- no relief **negative for COVID**‘ No history of asthma, no history of Diabetes Mellitus, no history of smoking. No history of fever. no Covid-19 contact. No history of recent overseas travel.  No history of working in a hospital or nursing home and no plan to work in a hospital or nursing home in the coming days. No history of shortness of breath, no history of wheezing. History of runny nose. post nasal drip. Hydrochlorothiazide. Orally once daily. Patient denies being on Oral Contraceptive Pills. No possibility of pregnancy per patient. status post Tubal ligation."
		},
		{
			"type": "objective",
			"note": "Via phone."
		},
		{
			"type": "assessment",
			"note": "Upper respiratory infection suspect viral."
		},
		{
			"type": "plan",
			"note": "Antibiotics are not necessary in this situation as most likely cause of symptoms is viral. Rest, increased fluids, tylenol prn, saline gargles prn. Ok to use otc cough syrups prn such as Robitussin DM. If increasing symptoms such as increasing cough, fever, nausea, vomitting, or shortness of breath please go to the nearest Urgent care center or ER.    Measures to prevent spread of infection to others advised such as frequent hand washing, proper disposal of tissues and handkerchiefs, gloves, masks, Social distancing from others, regular cleaning of door handles, other surfaces with sanitizing solutions etc. Advised to check Centers for Disease Control website for more information."
		}
	]
}