Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.iemr.aam-inventory-ui</groupId>
<artifactId>aam-inventory-ui</artifactId>
<version>3.4.1</version>
<version>3.6.0</version>
<name>AAM-Inventory-UI</name>
<description>Piramal - inventory: Module ui</description>
<packaging>war</packaging>
Expand Down
4 changes: 4 additions & 0 deletions scripts/ci-prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ const defaultEnvValues = {
SITE_KEY:'',
CAPTCHA_CHALLENGE_URL:'',
ENABLE_CAPTCHA: false,
SITE_ID: '2',
TRACKER_URL: 'https://matomo.piramalswasthya.org/',
TRACKING_PLATFORM: 'ci',
TRACKING_ENABLED: 'true',
};

// Generate output data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
id="requestDate"
formControlName="requestDate"
[disabled]="true"
(focus)="trackFieldInteraction('Indent Date')"
/>
<mat-datepicker-toggle
matPrefix
Expand All @@ -39,6 +40,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
allowText="alphanumeric"
maxlength="20"
formControlName="referenceNumber"
(focus)="trackFieldInteraction('Reference No')"
/>
</mat-form-field>
</div>
Expand All @@ -53,6 +55,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
allowText="alphanumericspace"
maxlength="250"
formControlName="indentReason"
(focus)="trackFieldInteraction('Reason')"
/>
</mat-form-field>
</div>
Expand Down Expand Up @@ -101,6 +104,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
"
[itemListForm]="element"
required
(focus)="trackFieldInteraction('Item Name')"
/>
<!-- *ngIf="!element.itemNameView.disabled" -->
<mat-icon
Expand Down Expand Up @@ -138,6 +142,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
name="qOH"
formControlName="qOH"
required
(focus)="trackFieldInteraction('Quantity On Hand')"
/>
</mat-form-field>
</td>
Expand Down Expand Up @@ -165,6 +170,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
[attr.maxlength]="('' + element.qOH).length"
(blur)="checkQuantity(element)"
required
(focus)="trackFieldInteraction('Required Quantity')"
/>
<!-- -->
</mat-form-field>
Expand All @@ -189,6 +195,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
name="remarks"
formControlName="remarks"
allowText="alphanumericspace"
(focus)="trackFieldInteraction('Remarks')"
/>
</mat-form-field>
</td>
Expand Down Expand Up @@ -224,7 +231,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
<button
mat-mini-fab
color="primary"
(click)="addToindentItemList()"
(click)="addToindentItemList(); trackFieldInteraction('Add Button')"
>
<mat-icon>add</mat-icon>
</button>
Expand All @@ -245,7 +252,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
mat-raised-button
matTooltip="{{ currentLanguageSet?.inventory?.back }}"
matTooltipPosition="right"
(click)="goBack()"
(click)="goBack(); trackFieldInteraction('Back Button')"
>
{{ currentLanguageSet?.inventory?.back }}
</button>
Expand All @@ -259,7 +266,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
class="pull-right m-r-5 mat_green"
*ngIf="!editMode"
[disabled]="indentRequestForm.invalid"
(click)="submitIndentRequest(indentRequestForm)"
(click)="submitIndentRequest(indentRequestForm); trackFieldInteraction('Save Button')"
>
{{ currentLanguageSet?.common?.save }}
</button>
Expand All @@ -270,7 +277,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
*ngIf="editMode"
class="pull-right m-r-5 mat_green"
[disabled]="indentRequestForm.invalid"
(click)="updateIndentRequest(indentRequestForm)"
(click)="updateIndentRequest(indentRequestForm); trackFieldInteraction('Update Button')"
>
{{ currentLanguageSet?.inventory?.update }}
</button>
Expand All @@ -281,7 +288,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
color="primary"
class="pull-right m-r-5"
[disabled]="indentRequestForm.pristine"
(click)="resetIndentRequestForm()"
(click)="resetIndentRequestForm(); trackFieldInteraction('Clear Button')"
>
{{ currentLanguageSet?.inventory?.clear }}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import { MatTableDataSource } from '@angular/material/table';
import { Subscription } from 'rxjs';
import { SessionStorageService } from 'Common-UI/src/registrar/services/session-storage.service';
import { AmritTrackingService } from 'Common-UI/src/tracking';

@Component({
selector: 'app-indent-request',
Expand Down Expand Up @@ -77,6 +78,7 @@
private confirmationService: ConfirmationService,
private dataStorageService: DataStorageService,
readonly sessionstorage:SessionStorageService,
private trackingService: AmritTrackingService

Check warning on line 81 in src/app/app-modules/inventory/indent/indent-order-worklist/sub-store-indent-order-worklist/indent-request/indent-request.component.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Member 'trackingService: AmritTrackingService' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-Inventory-UI-NEXT&issues=AZrjSo3jvWAlUBb0Xkja&open=AZrjSo3jvWAlUBb0Xkja&pullRequest=107
) {
this.subs = this.inventoryService
.getDialogClosedObservable()
Expand Down Expand Up @@ -402,4 +404,8 @@
this.currentLanguageSet = this.languageComponent.currentLanguageObject;
}
// -----End------

trackFieldInteraction(fieldName: string) {
this.trackingService.trackFieldInteraction(fieldName, 'Indent Request');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h4>{{ currentLanguageSet?.inventory?.subStoreIndentOrderWorklist }}</h4>
class="pull-right button-full-width"
type="button"
color="primary"
(click)="routeToRaiseRequest()"
(click)="routeToRaiseRequest(); trackFieldInteraction('Raise Request Button')"
>
{{ currentLanguageSet?.inventory?.raiseRequest }}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import { MatPaginator } from '@angular/material/paginator';
import { MatTableDataSource } from '@angular/material/table';
import { SessionStorageService } from 'Common-UI/src/registrar/services/session-storage.service';
import { AmritTrackingService } from 'Common-UI/src/tracking';

@Component({
selector: 'app-sub-store-indent-order-worklist',
Expand Down Expand Up @@ -60,6 +61,7 @@
private confirmationService: ConfirmationService,
private dataStorageService: DataStorageService,
readonly sessionstorage:SessionStorageService,
private trackingService: AmritTrackingService

Check warning on line 64 in src/app/app-modules/inventory/indent/indent-order-worklist/sub-store-indent-order-worklist/sub-store-indent-order-worklist.component.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Member 'trackingService: AmritTrackingService' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-Inventory-UI-NEXT&issues=AZrjSo4NvWAlUBb0Xkjb&open=AZrjSo4NvWAlUBb0Xkjb&pullRequest=107
) {}

ngOnInit() {
Expand Down Expand Up @@ -141,4 +143,8 @@
this.currentLanguageSet = this.languageComponent.currentLanguageObject;
}
// -----End------

trackFieldInteraction(fieldName: string) {
this.trackingService.trackFieldInteraction(fieldName, 'Sub Store Indent Order Worklist');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h4 class="inline-block" style="font-size: larger">
class="pull-right button-full-width m-l-5"
type="button"
color="primary"
(click)="openSearchDialog()"
(click)="openSearchDialog(); trackFieldInteraction('Advance Search Button')"
>
{{ currentLanguageSet?.bendetails?.advanceSearch }}
</button>
Expand All @@ -21,6 +21,7 @@ <h4 class="inline-block" style="font-size: larger">
type="button"
color="primary"
routerLink="View"
(click)="trackFieldInteraction('Previous Records Button')"
>
{{ currentLanguageSet?.inventory?.previousRecords }}
</button>
Expand All @@ -44,6 +45,7 @@ <h4 class="inline-block" style="font-size: larger">
id="beneficiaryID"
formControlName="beneficiaryID"
(keyup)="checkBeneficiary()"
(focus)="trackFieldInteraction('Beneficiary ID')"
/>
</mat-form-field>
</div>
Expand All @@ -61,6 +63,9 @@ <h4 class="inline-block" style="font-size: larger">
!beneficiaryDetailForm.get('beneficiaryID')?.value
"
(selectionChange)="getVisitDetail()"
(selectionChange)="
trackFieldInteraction('Visit Code')
"
>
<mat-option
*ngFor="let visit of beneficiaryDetail"
Expand All @@ -83,6 +88,7 @@ <h4 class="inline-block" style="font-size: larger">
autocomplete="off"
formControlName="visitDate"
[readonly]="true"
(focus)="trackFieldInteraction('Visit Date')"
/>
<mat-datepicker-toggle
matPrefix
Expand All @@ -104,6 +110,7 @@ <h4 class="inline-block" style="font-size: larger">
id="beneficiaryName"
formControlName="beneficiaryName"
[readonly]="true"
(focus)="trackFieldInteraction('Patient Name')"
/>
</mat-form-field>
</div>
Expand All @@ -118,6 +125,7 @@ <h4 class="inline-block" style="font-size: larger">
id="beneficiaryAge"
formControlName="beneficiaryAge"
[readonly]="true"
(focus)="trackFieldInteraction('Age')"
/>
</mat-form-field>
</div>
Expand All @@ -134,6 +142,7 @@ <h4 class="inline-block" style="font-size: larger">
id="genderName"
formControlName="genderName"
[readonly]="true"
(focus)="trackFieldInteraction('Gender')"
/>
</mat-form-field>
</div>
Expand All @@ -150,6 +159,7 @@ <h4 class="inline-block" style="font-size: larger">
id="doctorName"
formControlName="doctorName"
[readonly]="true"
(focus)="trackFieldInteraction('Doctor Name')"
/>
</mat-form-field>
</div>
Expand All @@ -167,6 +177,7 @@ <h4 class="inline-block" style="font-size: larger">
formControlName="reference"
maxlength="50"
[readonly]="!dateBool"
(focus)="trackFieldInteraction('Remarks')"
/>
</mat-form-field>
</div>
Expand All @@ -182,6 +193,7 @@ <h4 class="inline-block" style="font-size: larger">
formControlName="medicineDispenseType"
[disabled]="!beneficiaryDetailForm.get('visitCode')?.value"
(change)="getBeneficiaryDetail()"
(change)="trackFieldInteraction('Type of Dispense')"
>
<mat-radio-button
color="primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { SearchComponent } from '../../core/components/search/search.component';
import { SessionStorageService } from 'Common-UI/src/registrar/services/session-storage.service';
import { AmritTrackingService } from 'Common-UI/src/tracking';

@Component({
selector: 'app-medicine-dispense',
Expand All @@ -49,7 +50,8 @@
private inventoryService: InventoryService,
public http_service: LanguageService,
private dialog: MatDialog,
readonly sessionstorage:SessionStorageService,
readonly sessionstorage: SessionStorageService,
private trackingService: AmritTrackingService

Check warning on line 54 in src/app/app-modules/inventory/medicine-dispense/medicine-dispense.component.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Member 'trackingService: AmritTrackingService' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-Inventory-UI-NEXT&issues=AZrjSo51vWAlUBb0Xkje&open=AZrjSo51vWAlUBb0Xkje&pullRequest=107
) {}

ngOnInit() {
Expand Down Expand Up @@ -316,4 +318,8 @@
this.currentLanguageSet = this.languageComponent.currentLanguageObject;
}
// -----End------

trackFieldInteraction(fieldName: string) {
this.trackingService.trackFieldInteraction(fieldName, 'Medicine Dispense');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h4 style="font-size: larger">
type="button"
color="primary"
routerLink="previousRecord"
(click)="trackFieldInteraction('Previous Records Button')"
>
{{ currentLanguageSet?.inventory?.previousRecords }}
</button>
Expand All @@ -24,9 +25,7 @@ <h4 style="font-size: larger">

<div class="row m-t-10">
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3" *ngIf="!benSelected">
<mat-form-field
class="input-full-width "
>
<mat-form-field class="input-full-width">
<mat-label>{{
currentLanguageSet?.inventory?.beneficiaryIDPhoneNumber
}}</mat-label>
Expand All @@ -38,6 +37,7 @@ <h4 style="font-size: larger">
name="beneficiaryIDOrPhoneNumber"
formControlName="beneficiaryIDOrPhoneNumber"
(keyup.enter)="identityQuickSearch(beneficiaryIDOrPhoneNumber)"
(focus)="trackFieldInteraction('Beneficiary ID / Phone Number')"
/>
<mat-icon
class="search-btn"
Expand All @@ -54,9 +54,7 @@ <h4 style="font-size: larger">
style="display: flex; gap: 10px; margin-top: 30px"
>
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-3 box">
<mat-form-field
class="input-full-width "
>
<mat-form-field class="input-full-width">
<mat-label>{{
currentLanguageSet?.bendetails?.beneficiaryID
}}</mat-label>
Expand All @@ -71,9 +69,7 @@ <h4 style="font-size: larger">
</mat-form-field>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-3 box">
<mat-form-field
class="input-full-width "
>
<mat-form-field class="input-full-width">
<mat-label>{{
currentLanguageSet?.bendetails?.beneficiaryName
}}</mat-label>
Expand All @@ -88,9 +84,7 @@ <h4 style="font-size: larger">
</mat-form-field>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-3 box">
<mat-form-field
class="input-full-width "
>
<mat-form-field class="input-full-width">
<mat-label>
{{ currentLanguageSet?.bendetails?.age }}
</mat-label>
Expand All @@ -105,9 +99,7 @@ <h4 style="font-size: larger">
</mat-form-field>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-3 box">
<mat-form-field
class="input-full-width "
>
<mat-form-field class="input-full-width">
<mat-label>{{ currentLanguageSet?.bendetails?.gender }}</mat-label>
<input
autocomplete="off"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import { LanguageService } from '../../core/services/language.service';
import { BenificiaryDetailsComponent } from './benificiary-details/benificiary-details.component';
import { SessionStorageService } from 'Common-UI/src/registrar/services/session-storage.service';
import { AmritTrackingService } from 'Common-UI/src/tracking';

@Component({
selector: 'app-patient-return',
Expand All @@ -53,6 +54,7 @@
private inventoryService: InventoryService,
private confirmationService: ConfirmationService,
readonly sessionstorage:SessionStorageService,
private trackingService: AmritTrackingService

Check warning on line 57 in src/app/app-modules/inventory/patient-return/patient-return.component.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Member 'trackingService: AmritTrackingService' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-Inventory-UI-NEXT&issues=AZrjSo4zvWAlUBb0Xkjc&open=AZrjSo4zvWAlUBb0Xkjc&pullRequest=107
) {}

ngOnInit() {
Expand Down Expand Up @@ -216,4 +218,8 @@
this.currentLanguageSet = this.languageComponent.currentLanguageObject;
}
//--End--

trackFieldInteraction(fieldName: string) {
this.trackingService.trackFieldInteraction(fieldName, 'Patient Return');
}
}
Loading
Loading