-
Notifications
You must be signed in to change notification settings - Fork 5
Administrative Functions
Administrative functions are usually part of various other APIs as places where certain data are only available to those with the proper privileges, but there are some functions which are unique to this section. All administrative functions are consolidated in this section, but they are also present in the APIs they are normally encapuslated in. When the APIs are standardized in the future, these endpoints will likely be structured differently, but it will remain obvious that they require administrative privileges.
All endpoints which are listed as hyperlinks navigate directly to that particular endpoint's documentation, which contains data models, usage examples, and response structures.
- v2/admin/clients
- v2/admin/clients/{hospitalId}
- v2/admin/clients/{hospitalId}/contacts
- v2/admin/clients/{hospitalId}/contacts/{contactId}
- v2/admin/clients/{hospitalId}/seats
- v2/admin/clients/{hospitalId}/sites
- v2/admin/clients/{hospitalId}/sites/{siteId}
- v2/admin/clients/types
- v2/admin/consultations
- v2/admin/hospitals/{hospitalId}/locations
- v2/admin/hospitals/{hospitalId}/organizations
- v2/admin/hospitals/settings/{hospitalId}
- v2/admin/integration-logs
- v2/admin/log-messages
- v2/admin/patient/{patientId}/dependent
- v2/admin/patient/{patientId}/dependent/{dependentId}/relationship
- v2/admin/patients
- v2/admin/patients/{id}
- v2/admin/patients/onboardEmailSetting
- v2/admin/patients/send-onboarding-email
- v2/admin/pendingaccounts
- v2/admin/pendingaccounts/{id}
- v2/admin/snapservices/logs/{id}
- v2/admin/userstaffprofile
- v2/clinicians/staffs/{adminUserId}/tags
- v2/filesharing/folder/admin
- v2.1/admin/postalcodes
- v2.1/admin/postalcodes/{id}
- v2.1/admin/rules
- v2.1/admin/rules/{id}
- v2.1/admin/rules/{id}/patient-organization-rules
- v2.1/admin/rules/{id}/subject-address-rules
- v2.1/admin/rules/{id}/subject-distance-rules
- v2.1/admin/rules/patient-organization-rules
- v2.1/admin/rules/rule-categories
- v2.1/admin/rules/rule-sets
- v2.1/admin/rules/rule-sets/{id}
- v2.1/admin/rules/rule-templates
- v2.1/admin/rules/rule-templates/{id}
- v2.1/admin/rules/subject-address-meta-rules
- v2.1/admin/rules/subject-address-rules
- v2.1/admin/rules/subject-distance-rules
- v2.1/clinicians/profile
- Use POST v2/admin/patients/send-onboarding-email to send an onboarding email.
- Use PUT v2/admin/pendingaccounts to update a pending account profile.
- Use GET v2/admin/pendingaccounts/{id} to get a pending account profile.
Use GET v2/admin/patients to determine if a user exists in the system. This endpoint requires physician or administrative permissions to run properly.
- Use GET or POST v2/admin/clients to get details of clients in the system, or to create new clients.
- Use v2/admin/clients/{hospitalId} to get, update, or deactivate client details by hospital ID. Use GET, PUT, or DELETE, not POST.
- Use PUT v2/admin/clients/{hospitalId}/contacts/{contactId} to edit a hospital contact entry.
- Use GET v2/admin/clients/{hospitalId}/seats to get the available client seats for a hospital.
- Use GET or POST v2/admin/clients/{hospitalId}/sites to get a list of hospital sites or create a new hospital site.
- Use GET or PUT v2/admin/clients/{hospitalId}/sites/{siteId} to access or edit a hospital site.
- Use GET v2/admin/clients/types to get a list of client types.
Use POST on the following endpoints to create a patient or dependent.
-
Create Patient:
POST
v2/admin/patients -
Create Dependent:
POST
v2/admin/patient/{patientId}/dependent
Use DELETE v2/admin/patients/{id} to deactivate a patient. This does not remove the patient from the SnapMD system, but it sets its status to "Inactive." This endpoint requires administrative privileges.
- Use POST v2/admin/patient/{patientId}/dependent to create a new dependent linked to a patient.
- Use PUT v2/admin/patient/{patientId}/dependent/{dependentId}/relationship to edit a relatinship with a dependent.
- Use GET v2/admin/consultations to get all encounters for a hospital.
- Use GET v2/admin/hospitals/{hospitalId}/locations to get all hospital locations.
- Use GET v2/admin/hospitals/{hospitalId}/organizations to get all organizations related to a hospital.
- Use GET or PUT v2/admin/hospitals/settings/{hospitalId} to get or edit hospital settings.
- Use GET v2/admin/patients/onboardEmailSetting to get whether the current user's hospital has the ability to send onboard emails.
- Use GET v2/filesharing/folder/admin to get the shared folder a hospital uses.
- Use GET v2/admin/integration-logs to get integration log messages.
- Use GET v2/admin/log-messages to get log messages.
- Use GET v2/admin/snapservices/logs/{id} to get the last 100 log records for a service.
Use POST v2/admin/patients to import a patient with minimum data.
- Use GET or PUT v2.1/admin/postalcodes to get or add postal codes.
- Use PUT or DELETE v2.1/admin/postalcodes/{id} to update or delete a postal code.
Use the following endpoints to handle rules.
- Use GET or POST v2.1/admin/rules to get all rules, or to add a new rule.
- Use PUT or DELETE v2.1/admin/rules/{id} to edit or delete a rule.
Use the following endpoints to handle specific rule types. The subject address rules are the only rules currently implemented on all systems.
- Use PUT v2.1/admin/rules/{id}/patient-organization-rules to edit a patient organization rule.
- Use PUT v2.1/admin/rules/{id}/subject-address-rules to edit a subject address rule.
- Use GET v2.1/admin/rules/subject-address-meta-rules to access rules which contain info to make subject address rules.
- Use PUT v2.1/admin/rules/{id}/subject-distance-rules to edit a subject distance rule.
- Use POST v2.1/admin/rules/patient-organization-rules to add a patient organization rule.
- Use POST v2.1/admin/rules/subject-address-rules to add a subject address rule.
- Use POST v2.1/admin/rules/subject-distance-rules to add a subject distance rule.
Use the following endpoints to handle rule categories and rule sets.
- Use GET v2.1/admin/rules/rule-categories to access rule categories.
- Use GET or POST v2.1/admin/rules/rule-sets to access or add rule sets
- Use PUT or DELETE v2.1/admin/rules/rule-sets/{id} to update or delete rule sets by ID.
Use the following endpoints to handle rule templates.
- Use GET or POST v2.1/admin/rules/rule-templates to get rule templates or to add a new rule template.
- Use PUT or DELETE v2.1/admin/rules/rule-templates/{id} to update or delete a rule template by its ID.
- Use POST v2/clinicians/staffs/{adminUserId}/tags to apply a tag to an admin user.
- v2/admin/userstaffprofile is an alias for v2.1/clinicians/profile.