Procedure to Retrieve a Single Consent File (Extended)
Objective: Retrieve a single consent file by navigating to the patients page and searching for a specific patient using first name, middle name, last name, and birthdate. Optionally, navigate to the medical cases page to find the corresponding medical case associated with a specific health facility. Copy the `patient uid`, connect to the server, and use `scp` to copy the file locally.
Procedure:
1. Navigate to Patients Page:
- Login to medal data.
- Navigate to the patients page: `<medal-data-url>/patients`.
2. Search for Patient:
- Use the search functionality on the Patients page to find the specific patient.
- Enter the patient's first name, middle name, last name, or birthdate in the search fields.
- Review the search results to locate the correct patient.
- You can order it by `SN` to have a chronological order
3. More options to retrieve the patient:
- Use the search functionality on the Medical Cases page to find cases associated with a specific health facility.
- Enter the health facility's name in the search fields.
- Order the search results by date of creation to help locate the desired medical case.
- Or search for a specific date and order the results by health facilities
4. Copy Patient ID:
- In the Patients search page, copy the `patient uid` associated with the patient whose consent file you want to retrieve.
- In the Patients detail page, copy the `Patient Id`
- In the Medical Cases search page, copy the `Belongs to patient id`
5. Connect to the Server:
- Open a terminal on your local machine.
6. Copy File Locally with `scp`:
- Use the following `scp` command, replacing the variables with the appropriate values:
scp "REMOTE_USER@REMOTE_SERVER:SOURCE_PATH/PATIENT_UID_image.jpg" "DESTINATION_PATH"
- Replace `REMOTE_USER` with the actual remote username.
- Replace `REMOTE_SERVER` with the actual remote server address.
- Replace `SOURCE_PATH` with the path where the image is stored on the server.
- Replace `PATIENT_UID` with the copied `patient uid`. Example : c70d3537-7d9d-4462-869b-ffdswbd013c8_image.jpg
- Replace `DESTINATION_PATH` with the local path where you want to copy the image.
Expected Results: The specified patient's consent file should be successfully located and retrieved. The file should be copied locally using `scp` with the correct variables replaced.