-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
482 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Linking Duplicate Patient Resources | ||
|
||
This script takes in the IDs of duplicate patient resources and links them using the `patient.link` attribute | ||
|
||
## Setup | ||
1. Navigate to the `linking` directory | ||
``` | ||
cd .../linking | ||
``` | ||
2. Create and activate a virtual environment | ||
``` | ||
virtualenv venv | ||
source venv/bin/activate | ||
``` | ||
3. Install dependencies | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
4. Update the `config.py` file with the correct credentials to access your server | ||
|
||
## Usage | ||
- To run the script you need to pass in the IDs of two patient resource. For example | ||
``` | ||
python3 main.py --patient_ids "12345678|91011121" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
client_id = 'client_id' | ||
client_secret = 'client_secret' | ||
username = 'username' | ||
password = 'password' | ||
access_token_url = 'https://keycloak.smartregister.org/auth/realms/your-realm-here/protocol/openid-connect/token' | ||
fhir_base_url = 'https://example.smartregister.org/fhir' | ||
keycloak_url = 'https://keycloak.smartregister.org/auth/admin/realms/your-realm-here' |
Oops, something went wrong.