const { data: clinic } = await clinik.locations.create({
name: 'Sunrise Medical Center — Main Building',
status: 'active',
description: 'Primary care facility with 3 floors and 40 exam rooms',
mode: 'instance',
type: ['HOSP'],
phone: '555-0100',
email: '[email protected]',
address: {
line: ['100 Health Blvd'],
city: 'Austin',
state: 'TX',
postalCode: '78701',
country: 'US',
},
physicalType: 'building',
position: { longitude: -97.7431, latitude: 30.2672 },
managingOrganizationId: 'org_sunrise',
hoursOfOperation: [
{ daysOfWeek: ['mon', 'tue', 'wed', 'thu', 'fri'], openingTime: '08:00:00', closingTime: '18:00:00' },
{ daysOfWeek: ['sat'], openingTime: '09:00:00', closingTime: '13:00:00' },
],
availabilityExceptions: 'Closed on federal holidays',
});