Skip to content

Create a new site

Request

Security
bearer
Bodyapplication/jsonrequired
namestringrequired

The name of the site

Example:"Downtown Clinic"
addressobjectrequired

The address of the site

Example:
{ "street": "123 Main St", "city": "New York", "zipCode": "10001" }
googlePlaceIdstringrequired

The Google Place ID of the site

Example:"ChIJN1t_tDeuEmsRUsoyG83frY4"
clientAccountIdnumberrequired

The ID of the client Account the site belongs to

Example:1
organizationIdnumberrequired

The ID of the organization the site belongs to

Example:1
brandIdnumberrequired

The ID of the brand the site belongs to

Example:2
phoneNumberstring

The phone number of the site

Example:"+1-555-555-5555"
websitestring

The website of the site

Example:"https://www.downtownclinic.com"
anyDeskIpstring

The AnyDesk IP of the site for remote access

Example:"192.168.1.1"
practiceManagementSystemIdnumberrequired

The practice management system ID for the site

Example:123
integrationTypestringrequired

Integration type for the site

Enum:"PMS""CUSTOM"
Example:"PMS"
outputDataStoreTypestring

Output data store type for the site. Defaults based on integrationType if not provided.

Enum:"FHIR_R4""AHDS_V1""CUSTOM""NONE"
Example:"FHIR_R4"
seedAhdsStoreboolean

If true, AHDS store will be provisioned with seed data included. If false or omitted (default), AHDS store will have empty schema only. Only applies when outputDataStoreType is AHDS_V1.

Example:false
customIntegrationTypestringrequired

Custom Integration type for the site

Value:"FILE_UPLOAD"
Example:"FILE_UPLOAD"
siteManagerUserIdnumber

The ID of the decision-maker user

Example:45
cloudUserNamestring

The cloud based username for the site

Example:"cloud-user"
cloudUserPasswordstring

The cloud based user password for the site

Example:"cloud-user-password"
cloudOrganizationNamestring

The cloud based organization name for the site

Example:"cloud-organization-name"
cloudLoginUrlstring

The cloud based login url for the site

Example:"https://cloud-login-url.com"
curl -i -X POST \
  https://docs.axiomera.com/_mock/apis/heydonto/openapi/site \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Downtown Clinic",
    "address": {
      "street": "123 Main St",
      "city": "New York",
      "zipCode": "10001"
    },
    "googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
    "clientAccountId": 1,
    "organizationId": 1,
    "brandId": 2,
    "phoneNumber": "+1-555-555-5555",
    "website": "https://www.downtownclinic.com",
    "anyDeskIp": "192.168.1.1",
    "practiceManagementSystemId": 123,
    "integrationType": "PMS",
    "outputDataStoreType": "FHIR_R4",
    "seedAhdsStore": false,
    "customIntegrationType": "FILE_UPLOAD",
    "siteManagerUserId": 45,
    "cloudUserName": "cloud-user",
    "cloudUserPassword": "cloud-user-password",
    "cloudOrganizationName": "cloud-organization-name",
    "cloudLoginUrl": "https://cloud-login-url.com"
  }'

Responses

Site created successfully.

Bodyapplication/json
idnumberrequired

The ID of the site

Example:123
namestringrequired

The name of the site

Example:"Downtown Clinic"
addressobject(SiteAddressDto)required

The address information of the site

googlePlaceIdstringrequired

The Google Place ID for the site

Example:"ChIJN1t_tDeuEmsRUsoyG83frY4"
phoneNumberstring or null

The phone number of the site

Example:"+1 (555) 123-4567"
websitestring or null

The website of the site

Example:"https://downtownclinic.com"
anyDeskIpstring or null

The AnyDesk IP address for remote access

Example:"192.168.1.100"
createdByUserIdnumberrequired

The ID of the user who created the site

Example:202
createdAtstringrequired

The date and time the site was created

Example:"2021-05-01T12:00:00Z"
updatedAtstringrequired

The date and time the site was last updated

Example:"2021-05-01T12:00:00Z"
deletedAtstring or null

The date and time the site was deleted, if applicable

Example:"null"
clientAccountIdnumberrequired

The ID of the client account the site is associated with

Example:456
organizationIdnumberrequired

The ID of the organization the site belongs to

Example:789
brandIdnumberrequired

The ID of the brand the site is associated with

Example:101
practiceManagementSystemIdnumber or null

The ID of the practice management system used by the site

Example:202
integrationTypestringrequired

Integration type for the site

Default:"PMS"
Enum:"PMS""CUSTOM"
Example:"PMS"
outputDataStoreTypestringrequired

Output data store type for the site

Default:"FHIR_R4"
Enum:"FHIR_R4""AHDS_V1""CUSTOM""NONE"
Example:"FHIR_R4"
licenseKeystring or null

The license key for the site

Example:"XXX-YYY-ZZZ-AAA-BBB"
fhirStoreIdstring or null

The ID of the FHIR store associated with the site

Example:"fhir-store-123"
firstSyncDatestring or null

The date of the first sync with the site

Example:"2021-05-15T12:00:00Z"
latestSyncDatestring or null

The date of the most recent sync with the site

Example:"2021-06-01T12:00:00Z"
synchronizationIsActiveboolean or null

Indicates whether synchronization is active

Example:true
siteManagerUserIdnumberrequired

The ID of the user who manages the site

Example:303
cloudUserNamestring or null

The cloud username for the site

Example:"downtown.clinic"
cloudUserPasswordstring or null

The cloud user password for the site

Example:"encrypted-password"
cloudOrganizationNamestring or null

The name of the cloud organization for the site

Example:"HealthCorp Cloud"
cloudLoginUrlstring or null

The URL for cloud login

Example:"https://cloud.healthcorp.com/login"
clientAccountobject(SiteClientAccountDto)required

The client account associated with the site

organizationobject(SiteOrganizationDto)required

The organization the site belongs to

brandobject(SiteBrandDto)required

The brand the site is associated with

practiceManagementSystemobject(SitePracticeManagementSystemDto)required

The practice management system used by the site

createdByUserobject(SiteCreatedByUserDto)required

The user who created the site

siteUsersArray of objects(SiteUserDto)required

The users associated with the site

siteManagerUserobject(SiteManagerUserDto)required

The user who manages the site

integrationTosAcceptedAtstring, (date-time)required

The date and time the site accepted the integration TOS

Example:"2021-08-01T00:00:00.000Z"
Response
{ "id": 123, "name": "Downtown Clinic", "address": { "lat": 37.7749, "lng": -122.4194, "url": "https://maps.google.com/?q=123+Main+St", "formatted_address": "123 Main St, San Francisco, CA 94103" }, "googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4", "phoneNumber": "+1 (555) 123-4567", "website": "https://downtownclinic.com", "anyDeskIp": "192.168.1.100", "createdByUserId": 202, "createdAt": "2021-05-01T12:00:00Z", "updatedAt": "2021-05-01T12:00:00Z", "deletedAt": "null", "clientAccountId": 456, "organizationId": 789, "brandId": 101, "practiceManagementSystemId": 202, "integrationType": "PMS", "outputDataStoreType": "FHIR_R4", "licenseKey": "XXX-YYY-ZZZ-AAA-BBB", "fhirStoreId": "fhir-store-123", "firstSyncDate": "2021-05-15T12:00:00Z", "latestSyncDate": "2021-06-01T12:00:00Z", "synchronizationIsActive": true, "siteManagerUserId": 303, "cloudUserName": "downtown.clinic", "cloudUserPassword": "encrypted-password", "cloudOrganizationName": "HealthCorp Cloud", "cloudLoginUrl": "https://cloud.healthcorp.com/login", "clientAccount": { "id": 456, "title": "HealthCorp Client", "phoneNumber": "+1 (555) 123-4567", "website": "https://healthcorp.com", "isEnabled": true, "createdAt": "2021-05-01T12:00:00Z", "updatedAt": "2021-05-01T12:00:00Z" }, "organization": { "id": 123, "title": "HealthCorp", "website": "https://healthcorp.com", "isEnabled": true, "clientAccountId": 456, "createdAt": "2021-05-01T12:00:00Z", "updatedAt": "2021-05-01T12:00:00Z" }, "brand": { "id": 789, "title": "HealthCorp Brand", "isEnabled": true, "organizationId": 123, "clientAccountId": 456, "createdAt": "2021-05-01T12:00:00Z", "updatedAt": "2021-05-01T12:00:00Z" }, "practiceManagementSystem": { "id": 101, "title": "MedicalSoft Pro", "isCloudBased": true, "isEnabled": true, "createdAt": "2021-05-01T12:00:00Z", "updatedAt": "2021-05-01T12:00:00Z" }, "createdByUser": { "id": 202, "email": "john.doe@healthcorp.com", "firstName": "John", "lastName": "Doe", "role": "SITE_USER", "isEnabled": true, "createdAt": "2021-05-01T12:00:00Z", "updatedAt": "2021-05-01T12:00:00Z", "lastLoginDate": "2021-06-01T12:00:00Z" }, "siteUsers": [ { … } ], "siteManagerUser": { "id": 303, "email": "manager@healthcorp.com", "firstName": "Jane", "lastName": "Smith", "role": "SITE_MANAGER_USER", "isEnabled": true, "createdAt": "2021-05-01T12:00:00Z", "updatedAt": "2021-05-01T12:00:00Z", "lastLoginDate": "2021-06-01T12:00:00Z" }, "integrationTosAcceptedAt": "2021-08-01T00:00:00.000Z" }