Skip to content

Commit 894af98

Browse files
authored
Merge pull request #4 from PSMRI/develop
latest code
2 parents 830f3f3 + 54609c2 commit 894af98

File tree

15 files changed

+109
-295
lines changed

15 files changed

+109
-295
lines changed

.github/workflows/build-on-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
repository: ${{ github.event.pull_request.head.repo.full_name }}
1515

1616
- name: Setup JDK 17
17-
uses: actions/setup-java@v2
17+
uses: actions/setup-java@v4
1818
with:
1919
java-version: 17
20-
distribution: 'adopt'
20+
distribution: 'temurin'
2121
- name: Build with Maven
2222
run: mvn clean install

.github/workflows/package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
steps:
2121

2222
- name: Checkout code
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424

2525
- name: Setup JDK 17
26-
uses: actions/setup-java@v2
26+
uses: actions/setup-java@v4
2727
with:
2828
java-version: 17
29-
distribution: 'adopt'
29+
distribution: 'temurin'
3030

3131
- name: Build with Maven
3232
run: mvn clean install -DENV_VAR=${{ env.ENV_VAR }}

.github/workflows/sast.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ jobs:
3535

3636
# Initializes the CodeQL tools for scanning.
3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@v2
38+
uses: github/codeql-action/init@v3
3939

4040
- name: Setup JDK 17
41-
uses: actions/setup-java@v2
41+
uses: actions/setup-java@v4
4242
with:
4343
java-version: 17
44-
distribution: 'adopt'
44+
distribution: 'temurin'
4545

4646
- name: Build with Maven
4747
run: mvn clean install
4848

4949
- name: Perform CodeQL Analysis
50-
uses: github/codeql-action/analyze@v2
50+
uses: github/codeql-action/analyze@v3
5151
with:
5252
category: "/language:${{matrix.language}}"

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,33 @@ The AMRIT Telemedicine (TM) Service enhances the capabilities of Health and Well
77

88
## Features of Telemedicine (TM)
99

10-
Telemedicine plays a crucial role in the services provided by Health and Wellness Centers (HWCs). Here's how HWCs and telemedicine are connected:
10+
### **Telemedicine in Health and Wellness Centers (HWCs)**
1111

12-
1. **Teleconsultation**: HWCs utilize telemedicine technology to offer virtual consultations between patients and healthcare professionals. Through video calls, patients can connect with doctors and specialists to discuss their medical concerns, receive diagnoses, and obtain medical advice remotely, eliminating the need for in-person visits.
12+
Telemedicine is integral to HWCs, enhancing accessibility and efficiency in healthcare services.
1313

14-
2. **Improved Accessibility**: Telemedicine in HWCs improves accessibility to healthcare services. Patients who face difficulties in traveling to the center, such as those residing in remote areas or with limited mobility, can conveniently access medical consultations and services from their own location.
14+
1. **Teleconsultation**HWCs use telemedicine for virtual consultations, allowing patients to connect with doctors via video calls for diagnoses, medical advice, and follow-ups, reducing the need for in-person visits.
1515

16-
3. **Outpatient Services**: HWCs primarily focus on outpatient services, catering to patients who do not require hospitalization. Telemedicine facilitates the delivery of these outpatient services by enabling virtual visits, follow-ups, and monitoring, eliminating the need for physical appointments.
16+
2. **Improved Accessibility** – Patients in remote areas or with mobility issues can access healthcare conveniently without traveling to HWCs.
1717

18-
4. **Medication Management**: Telemedicine can be integrated into the medication management process at HWCs. Doctors can remotely prescribe medications and provide necessary instructions to patients. Patients can then obtain their prescribed medications from the center's drug dispensing facility, ensuring a streamlined medication management process.
18+
3. **Outpatient Services**Telemedicine supports outpatient care by enabling virtual visits, follow-ups, and remote monitoring, ensuring timely medical attention without physical appointments.
1919

20-
5. **Collaborative Care**: Telemedicine allows for collaboration between healthcare professionals within the HWC and specialists located in different locations. If a patient requires specialized expertise, telemedicine facilitates video consultations and discussions between the HWC's healthcare team and remote specialists, ensuring comprehensive care for the patient.
20+
4. **Medication Management** – Doctors can remotely prescribe medications, and patients can collect them from the HWC’s drug dispensing facility, ensuring a smooth medication process.
21+
22+
5. **Collaborative Care** – HWCs can consult specialists via telemedicine for expert opinions, ensuring comprehensive patient care through seamless collaboration.
23+
24+
6. **Integration with Laboratory Services** – IoT-enabled labs can transmit test data directly to the HWC’s application, facilitating real-time consultations and efficient interpretation of results.
25+
26+
Telemedicine strengthens HWCs by bridging geographical gaps, optimizing resources, and ensuring timely medical intervention.
2127

22-
6. **Integration with Laboratory Services**: HWCs often have laboratory facilities for conducting diagnostic tests. Telemedicine can streamline this process by enabling remote monitoring and consultation regarding test results. For example, IoT devices in the laboratory can transmit test data directly to the HWC's application, facilitating seamless communication and interpretation of results during teleconsultations.
2328

2429
## Building From Source
2530

2631
This microservice is built using Java and the Spring Boot framework, with MySQL as the underlying database. Before building the TM module, ensure you have the following prerequisites:
32+
For step-by-step guide, follow this [guide] (https://piramal-swasthya.gitbook.io/amrit/developer-guide/development-environment-setup) .
2733

28-
- JDK 1.8
34+
## Prerequisites
35+
- JDK 17 (LTS)
2936
- Maven
30-
- Redis
31-
- Spring Boot V2
32-
- MySQL
3337

3438
To build the TM module from source, follow these steps:
3539

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.iemr.tm</groupId>
8-
<artifactId>tmapi-v1.0</artifactId>
9-
<version>0.0.1-SNAPSHOT</version>
8+
<artifactId>tm-api</artifactId>
9+
<version>3.1.0</version>
1010
<packaging>war</packaging>
1111

12-
<name>tm-api</name>
12+
<name>TM-API</name>
1313
<description>Piramal TM</description>
1414

1515
<parent>
@@ -300,7 +300,7 @@
300300

301301

302302
<build>
303-
<finalName>tmapi-v3.0.0</finalName>
303+
<finalName>${artifactId}-${version}</finalName>
304304

305305
<plugins>
306306
<plugin>

src/main/environment/common_ci.properties

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,41 @@ [email protected]_PASSWORD@
66
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
77

88
## Carestream URLs
9-
carestreamOrderCreateURL=@env.COMMON_API@/carestream/createOrder
9+
carestreamOrderCreateURL=@env.COMMON_API@carestream/createOrder
1010

1111
## Identity - Common URLs
1212
# Registration
13-
registrationUrl =@env.COMMON_API@/beneficiary/create
13+
registrationUrl =@env.COMMON_API@beneficiary/create
1414

15-
registrarQuickSearchByIdUrl =@env.COMMON_API@/beneficiary/searchUserByID
15+
registrarQuickSearchByIdUrl =@env.COMMON_API@beneficiary/searchUserByID
1616

17-
registrarQuickSearchByPhoneNoUrl =@env.COMMON_API@/beneficiary/searchUserByPhone
17+
registrarQuickSearchByPhoneNoUrl =@env.COMMON_API@beneficiary/searchUserByPhone
1818

19-
getBenImageFromIdentity =@env.IDENTITY_API@/id/benImageByBenRegID
19+
getBenImageFromIdentity =@env.IDENTITY_API@id/benImageByBenRegID
2020

2121
##beneficiary edit
22-
beneficiaryEditUrl =@env.COMMON_API@/beneficiary/update
22+
beneficiaryEditUrl =@env.COMMON_API@beneficiary/update
2323

2424
## Advance Search
25-
registrarAdvanceSearchUrl =@env.COMMON_API@/beneficiary/searchBeneficiary
25+
registrarAdvanceSearchUrl =@env.COMMON_API@beneficiary/searchBeneficiary
2626

2727
## Data Sync API
28-
dataSyncUploadUrl=@env.MMU_API@/dataSync/van-to-server
28+
dataSyncUploadUrl=@env.MMU_API@dataSync/van-to-server
2929

3030
## Data download API
31-
dataSyncDownloadUrl=@env.MMU_API@/dataSync/server-to-van
31+
dataSyncDownloadUrl=@env.MMU_API@dataSync/server-to-van
3232

3333
## TC specialist slot booking
34-
tcSpecialistSlotBook=@env.SCHEDULER_API@/schedule/bookSlot
34+
tcSpecialistSlotBook=@env.SCHEDULER_API@schedule/bookSlot
3535

3636
## TC specialist slot cancelling
37-
tcSpecialistSlotCancel=@env.SCHEDULER_API@/schedule/cancelBookedSlot
37+
tcSpecialistSlotCancel=@env.SCHEDULER_API@schedule/cancelBookedSlot
3838

3939
## TM sms to beneficiary(schedule, cancel, reschedule)
40-
sendSMSUrl=@env.COMMON_API@/sms/sendSMS
40+
sendSMSUrl=@env.COMMON_API@sms/sendSMS
4141

4242
### get openkm doc download url
43-
openkmDocUrl=@env.COMMON_API@/kmfilemanager/getKMFileDownloadURL
43+
openkmDocUrl=@env.COMMON_API@kmfilemanager/getKMFileDownloadURL
4444

4545
##Fetosense Url
4646
fetosense-api-url-ANCTestDetails=https://asia-south1-amrit-fetosense.cloudfunctions.net/insertMother
@@ -71,5 +71,9 @@ [email protected]_SECRET_KEY@
7171

7272

7373
#ELK logging file name
74+
logging.path=logs/
7475
logging.file.name=@env.TM_API_LOGGING_FILE_NAME@
7576

77+
springdoc.api-docs.enabled=@env.SWAGGER_DOC_ENABLED@
78+
springdoc.swagger-ui.enabled=@env.SWAGGER_DOC_ENABLED@
79+

src/main/environment/common_dev.properties

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/main/environment/common_example.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ prescription=TMPrescription SMS
6969
### Redis IP
7070
spring.redis.host=localhost
7171

72+
jwt.secret=my-32-character-ultra-secure-and-ultra-long-secret
73+
logging.path=logs/
74+
logging.file.name=logs/tm-api.log
75+

src/main/environment/common_test.properties

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)