···44444545```bash
4646sudo -u postgres psql
4747-CREATE DATABASE care;
4747+CREATE ROLE my_username LOGIN PASSWORD 'my_password';
4848+CREATE DATABASE care WITH OWNER = my_username;
4849```
4950put the following in your `.env` file
5051```bash
···5454make up
5555```
56565757-to load dummy data for testing run:
5757+to load seed data for testing run:
58585959```bash
6060-make load-dummy-data
6060+make load-seed-data
6161```
6262+6263Stops and removes the containers without affecting the volumes:
63646465```bash
6566make down
6667```
6868+6769Stops and removes the containers and their volumes:
68706971```bash
···7678on [ghcr](https://github.com/ohcnetwork/care/pkgs/container/care)
77797880For backup and restore use [this](/docs/databases/backup.rst) documentation.
8181+7982## Contributing
80838184We welcome contributions from everyone. Please read our [contributing guidelines](./CONTRIBUTING.md) to get started.
···4242 {"name": "coding", "valueCoding": code.model_dump(exclude_defaults=True)},
4343 ]
4444 request_json = {"resourceType": "Parameters", "parameter": parameters}
4545+4546 full_result = self.query("POST", "ValueSet/$validate-code", request_json)
4646- try:
4747- results = full_result["parameter"]
4848- for result in results:
4949- if result["name"] == "result":
5050- return result["valueBoolean"]
5151- except Exception as e:
5252- err = "Unknown Value Returned from Terminology Server"
5353- raise Exception(err) from e
4747+ if "parameter" not in full_result:
4848+ raise ValueError("Valueset does not have specified code")
4949+ results = full_result["parameter"]
5050+ for result in results:
5151+ if result["name"] == "result":
5252+ return result["valueBoolean"]
5353+ return False
54545555 def search(self):
5656 parameters = []
···1818 copied_from = models.BigIntegerField(
1919 default=None, null=True, blank=True
2020 ) # If True, the record is a copy maintained of the given ID
2121+ allergy_intolerance_type = models.CharField(max_length=20, default="allergy")
···3232 """
3333 return {}
34343535- def perform_action(self, obj, action, request):
3636- """
3737- Perform some kind of action on an asset, the HTTP request is proxied through as is.
3838- an HTTP response object is expected as the return.
3939- """
4040- return # Return an HTTP Response
4141-42354336class DeviceTypeRegistry:
4437 _device_types = {}
···9588 Return Extra metadata for the given obj during retrieves
9689 """
9790 return {"Hello": "There from retrieve"}
9898-9999- def perform_action(self, obj, action, request):
100100- """
101101- Perform some kind of action on an asset, the HTTP request is proxied through as is.
102102- an HTTP response object is expected as the return.
103103- """
104104- return # Return an HTTP Response
105911069210793DeviceTypeRegistry.register("camera", SomeCameraPlugin)
···11+<!doctype html>
22+<html lang="en">
33+<head>
44+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
55+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
66+ <title>Set Up Your Password</title>
77+</head>
88+<body>
99+<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body">
1010+ <tr>
1111+ <td> </td>
1212+ <td class="container">
1313+ <div class="content">
1414+ <p>Hi <strong>{{username}}</strong>,</p>
1515+ <p>Welcome to Open Healthcare Network! Your username is: <strong>{{username}}</strong></p>
1616+ <p>To secure your account, please create a password by clicking the link below:</p>
1717+ <p>
1818+ <a href="{{create_password_url}}" style="background-color: #007bff; color: #ffffff; padding: 10px 15px; text-decoration: none; border-radius: 5px;">Create Password</a>
1919+ </p>
2020+ <p>Or copy and paste the following link into your browser:</p>
2121+ <p>{{create_password_url}}</p>
2222+ <p><strong>Note:</strong> This link will expire in 24 hours.</p>
2323+ <p>Thank you,<br>Open Healthcare Network Team</p>
2424+ </div>
2525+ </td>
2626+ <td> </td>
2727+ </tr>
2828+</table>
2929+</body>
3030+</html>
+1-1
care/templates/email/user_reset_password.html
···1717 <a href="{{reset_password_url}}" > Click Here</a>
1818 or copy paste the following link on your address bar
1919 {{reset_password_url}}
2020- ** This link will expire in 1 Hour
2020+ ** This link will expire in 24 Hours
2121</div>
2222 </td>
2323 <td> </td>
···1414| | | |
1515| | | Example Invocation: :code:`python manage.py load_dummy_data` |
1616+---------------------+---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1717-| load_data | state_name | This command is used to load all the DIstrict/Lsg/Ward Level data for a given state, The data that is imported is scraped from various sources, The admin can change this data at any point through the admin panel, If the state name is given as "all" then all available data is imported into care. |
1717+| load_data | state_name | This command is used to load all the District/Lsg/Ward Level data for a given state, The data that is imported is scraped from various sources, The admin can change this data at any point through the admin panel, If the state name is given as "all" then all available data is imported into care. |
1818| | | |
1919| | | Example Invocation: :code:`python manage.py load_data kerala` |
2020+---------------------+---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+1-1
docs/local-setup/configuration.rst
···149149If the command prompts for username only and after entering if it goes to error
150150do make sure that you have done the following
151151152152-Note: Make sure that you have created a database named `care` (replace thisw with your database name) with privileges set for the user `postgres`
152152+Note: Make sure that you have created a database named `care` (replace this with your database name) with privileges set for the user `postgres`
153153154154In the virtualenv shell type the following commands also::
155155