Location data model

Updated:

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNoUnique identifier for the location
created_atstring (date-time)NoWhen the location record was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)NoWhen the location record was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestringNoName of the location
descriptionstringNoDescription of the location
parent_idstringNoThe location this one is part of (e.g. a department within a hospital)
organization_namestringNoName of the organization that manages the location
addressobjectNoPostal address of the location
address.address1stringNoFirst line of the street address
address.address2stringNoSecond line of the street address
address.citystringNoCity or locality
address.regionstringNoRegional area (e.g., state in the U.S., province in Canada)
address.postal_codestringNoPostal or ZIP code
address.countrystringNoCountry
telephonesHealthcareTelephone[]NoPhone and fax numbers for the location
telephones[].telephonestringYesThe telephone number
telephones[].typeenumNoThe kind of telephone number (work, home, mobile, fax or other) Values: WORK, HOME, MOBILE, FAX, OTHER
emailsHealthcareEmail[]NoEmail addresses for the location
emails[].emailstringYesThe email address
emails[].typeenumNoThe kind of email address (work, home or other) Values: WORK, HOME, OTHER
latitudenumberNoLatitude of the location
longitudenumberNoLongitude of the location
identifiersHealthcareIdentifier[]NoBusiness identifiers for the location
identifiers[].valuestringYesThe identifier value
identifiers[].typeenumNoThe kind of identifier Values: MRN, NPI, SSN, DRIVERS_LICENSE, PASSPORT, INSURANCE, OTHER
identifiers[].systemstringNoThe namespace/system URI that issued the identifier
is_activebooleanNoWhether the location is in active use
metadataHealthcareMetadata[]NoCustom field values
metadata[].idstringNoIdentifier of the custom field
metadata[].valueobjectNoThe custom field value
metadata[].namespacestringNoThe scope or origin of the custom field
metadata[].formatenumNoThe data type of the value Values: TEXT, NUMBER, DATE, BOOLEAN, ARRAY, OBJECT
metadata[].extra_dataobjectNoAdditional data about the custom field
metadata[].slugstringNoThe custom field key

TypeScript

TypeScript
export type HealthcareLocation = {
	id?: string; // Unique identifier for the location
	created_at?: string-time; // When the location record was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // When the location record was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	name?: string; // Name of the location
	description?: string; // Description of the location
	parent_id?: string; // The location this one is part of (e.g. a department within a hospital)
	organization_name?: string; // Name of the organization that manages the location
	address?: {
		address1?: string; // First line of the street address 
		address2?: string; // Second line of the street address 
		city?: string; // City or locality 
		region?: string; // Regional area (e.g., state in the U.S., province in Canada) 
		postal_code?: string; // Postal or ZIP code 
		country?: string; // Country 
	}; // Postal address of the location
	telephones?: []; // Phone and fax numbers for the location
	emails?: []; // Email addresses for the location
	latitude?: number; // Latitude of the location
	longitude?: number; // Longitude of the location
	identifiers?: []; // Business identifiers for the location
	is_active?: boolean; // Whether the location is in active use
	metadata?: []; // Custom field values
	raw?: any; // Raw data from integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodHealthcareLocation = z.object({
	id: z.string().optional().describe("Unique identifier for the location"),
	created_at: z.string-time().optional().describe("When the location record was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("When the location record was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	name: z.string().optional().describe("Name of the location"),
	description: z.string().optional().describe("Description of the location"),
	parent_id: z.string().optional().describe("The location this one is part of (e.g. a department within a hospital)"),
	organization_name: z.string().optional().describe("Name of the organization that manages the location"),
	address: z.object({
			address1: z.string().optional().describe("First line of the street address"),
			address2: z.string().optional().describe("Second line of the street address"),
			city: z.string().optional().describe("City or locality"),
			region: z.string().optional().describe("Regional area (e.g., state in the U.S., province in Canada)"),
			postal_code: z.string().optional().describe("Postal or ZIP code"),
			country: z.string().optional().describe("Country")
}).optional().describe("Postal address of the location"),
	telephones: z.array().optional().describe("Phone and fax numbers for the location"),
	emails: z.array().optional().describe("Email addresses for the location"),
	latitude: z.number().optional().describe("Latitude of the location"),
	longitude: z.number().optional().describe("Longitude of the location"),
	identifiers: z.array().optional().describe("Business identifiers for the location"),
	is_active: z.boolean().optional().describe("Whether the location is in active use"),
	metadata: z.array().optional().describe("Custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PropertyHealthcareLocationAddress:
	"""First line of the street address"""
	address1: Optional[str]
	"""Second line of the street address"""
	address2: Optional[str]
	"""City or locality"""
	city: Optional[str]
	"""Regional area (e.g., state in the U.S., province in Canada)"""
	region: Optional[str]
	"""Postal or ZIP code"""
	postal_code: Optional[str]
	"""Country"""
	country: Optional[str]

@dataclasses.dataclass
class HealthcareLocation:
	"""Unique identifier for the location"""
	id: Optional[str]
	"""When the location record was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""When the location record was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""Name of the location"""
	name: Optional[str]
	"""Description of the location"""
	description: Optional[str]
	"""The location this one is part of (e.g. a department within a hospital)"""
	parent_id: Optional[str]
	"""Name of the organization that manages the location"""
	organization_name: Optional[str]
	"""Postal address of the location"""
	address: Optional[PropertyHealthcareLocationAddress]
	"""Phone and fax numbers for the location"""
	telephones: Optional[PropertyHealthcareLocationTelephones]
	"""Email addresses for the location"""
	emails: Optional[PropertyHealthcareLocationEmails]
	"""Latitude of the location"""
	latitude: Optional[int]
	"""Longitude of the location"""
	longitude: Optional[int]
	"""Business identifiers for the location"""
	identifiers: Optional[PropertyHealthcareLocationIdentifiers]
	"""Whether the location is in active use"""
	is_active: Optional[bool]
	"""Custom field values"""
	metadata: Optional[PropertyHealthcareLocationMetadata]
Are we missing anything? Let us know
Was this page helpful?