Skip to main content

clinik.organizations

Organizations represent healthcare providers, departments, insurance companies, and other entities involved in care delivery.

create

const { data, meta } = await clinik.organizations.create(request): Promise<ApiResponse<Organization>>
FieldTypeRequiredDescription
namestringYesOrganization name
activebooleanNoWhether active (default: true)
typestring[]NoOrganization types (prov, dept, team, ins, etc.)
aliasstring[]NoAlternate names
phonestringNoPhone number
emailstringNoEmail address
addressAddressNoPhysical address
partOfIdstringNoParent organization ID
contactArrayNoContact people

Example

const { data } = await clinik.organizations.create({
  name: 'Sunrise Medical Center',
  type: ['prov'],
  phone: '555-0100',
  email: '[email protected]',
  address: { line: ['100 Health Blvd'], city: 'Austin', state: 'TX', postalCode: '78701' },
  contact: [{
    purpose: 'billing',
    firstName: 'Sarah',
    lastName: 'Johnson',
    email: '[email protected]',
  }],
});
Same pattern as other resources. Search supports name, type, active filters.