Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Create new Tenant and Admin user #243

Open
fox1t opened this issue Feb 19, 2020 · 0 comments
Open

Create new Tenant and Admin user #243

fox1t opened this issue Feb 19, 2020 · 0 comments
Assignees
Milestone

Comments

@fox1t
Copy link
Member

fox1t commented Feb 19, 2020

🚀 Feature Proposal

Add API to create new tenant and user.

Motivation

When a user starts HospitalRun (auto-hosted instance) or goes to app.hospitalrun.io for the first time, it will be presented with a "create new user form". The route receives user base info and tenant info

Upon request, this route:

  • adds user to CouchDB;
  • creates a new database on CouchDB for the tenant, using tenant.name and adding unique code;
  • adds base entities to the db, such as ICD10;
  • sets permissions to the newly database for the user.

Example

{
  "user": "cuzzo",
  "password": "something_strong",
  "tenant": {
     "name": "",
     "address": <standardAddressObject>,
     
   },
   ...
}
@fox1t fox1t self-assigned this Feb 19, 2020
@fox1t fox1t transferred this issue from HospitalRun/hospitalrun Feb 19, 2020
@matteovivona matteovivona added this to the v2.0.0 milestone Feb 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants