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 Common-UI
Submodule Common-UI updated 30 files
+128 −0 CODE_OF_CONDUCT.md
+674 −0 LICENSE
+8 −4 README.md
+93 −0 src/registrar/abha-components/abha-consent-form/abha-consent-form.component.css
+73 −0 src/registrar/abha-components/abha-consent-form/abha-consent-form.component.html
+21 −0 src/registrar/abha-components/abha-consent-form/abha-consent-form.component.spec.ts
+82 −0 src/registrar/abha-components/abha-consent-form/abha-consent-form.component.ts
+6 −1 src/registrar/abha-components/abha-enter-otp-component/abha-enter-otp-component.component.html
+101 −31 src/registrar/abha-components/abha-enter-otp-component/abha-enter-otp-component.component.ts
+1 −1 src/registrar/abha-components/abha-generation-success-component/abha-generation-success-component.component.ts
+6 −4 src/registrar/abha-components/abha-mobile-component/abha-mobile-component.component.ts
+7 −7 src/registrar/abha-components/abha-verify-success-component/abha-verify-success-component.component.ts
+14 −1 src/registrar/abha-components/download-search-abha/download-search-abha.component.css
+95 −58 src/registrar/abha-components/download-search-abha/download-search-abha.component.html
+116 −19 src/registrar/abha-components/download-search-abha/download-search-abha.component.ts
+52 −2 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.css
+57 −57 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.html
+71 −49 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.ts
+2 −2 src/registrar/abha-components/health-id-display-modal/health-id-display-modal.component.html
+19 −15 src/registrar/abha-components/health-id-display-modal/health-id-display-modal.component.ts
+41 −34 src/registrar/beneficiary-details/beneficiary-details.component.ts
+3 −1 src/registrar/family-tagging/family-tagging-details/family-tagging-details.component.ts
+2 −0 src/registrar/registration.module.ts
+2 −2 src/registrar/registration/abha-information/abha-information.component.html
+48 −28 src/registrar/registration/abha-information/abha-information.component.ts
+16 −1 src/registrar/registration/location-information/location-information.component.ts
+14 −1 src/registrar/registration/registration.component.ts
+3 −1 src/registrar/search-family/search-family.component.ts
+5 −11 src/registrar/search/search.component.ts
+10 −2 src/registrar/services/registrar.service.ts
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.iemr.tm-ui</groupId>
<artifactId>tm-ui</artifactId>
<version>3.0.0</version>
<version>3.4.0</version>
<name>TM-UI</name>
<description>Piramal - tm: Module ui</description>
<packaging>war</packaging>
Expand Down Expand Up @@ -94,7 +94,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<version>3.4.0</version>
<executions>
<execution>
<id>npm-install</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,34 @@
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.beneficiaryName }}</td>
</tr>
<ng-container *ngIf="beneficiary?.fatherName">
<tr style="font-size: 14px; color: #000000">
<th id="fatherName">
{{ current_language_set?.bendetails?.fatherName }}:
</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.fatherName }}</td>
</tr>
</ng-container>
<ng-container *ngIf="beneficiary?.lastName">
<tr style="font-size: 14px; color: #000000">
<th id="lastName">
{{ current_language_set?.bendetails?.lastName }}:
</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.lastName }}</td>
</tr>
</ng-container>
<ng-container *ngIf="beneficiary?.preferredPhoneNum">
<tr style="font-size: 14px; color: #000000">
<th id="phoneNo">{{ current_language_set?.bendetails?.phoneNo }}:</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.preferredPhoneNum }}</td>
</tr>
</ng-container>
<tr style="font-size: 14px; color: #000000">
<th id="gender">
{{ current_language_set?.bendetails?.gender }} /
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,28 @@ <h4>{{ current_language_set?.casesheet?.provisionalDiag }}*</h4>
<div
class="col-12 row"
*ngFor="
let diagnosis of getProvisionalDiagnosisList();
let diagnosis of provisionalDiagnosisControls;
let i = index;
let isLast = last
"
>
<ng-container [formGroupName]="i">
<div class="col-9">
<mat-form-field class="input-full-width">
<input
matInput
allowText="inputFieldValidator"
appDiagnosisSearch
[diagnosisListForm]="diagnosis"
required
name="viewDiagnosisProvided"
formControlName="viewProvisionalDiagnosisProvided"
maxlength="100"
minlength="3"
required
[previousSelected]="
generalDiagnosisForm.value.provisionalDiagnosisList
"
/>
<mat-icon
class="search-btn cursorPointer"
matSuffix
appDiagnosisSearch
[diagnosisListForm]="diagnosis"
[previousSelected]="
generalDiagnosisForm.value.provisionalDiagnosisList
"
>search</mat-icon
>
<div class="col-xs-12 col-sm-8 col-md-9">
<mat-form-field class="input-full-width" appearance="fill">
<mat-label>{{ current_language_set?.casesheet?.provisionalDiag }}</mat-label>
<input matInput type="text" autocomplete="off" name="viewProvisionalDiagnosisProvided"
formControlName="viewProvisionalDiagnosisProvided" minlength="3" maxlength="100" required #diagnosisInput
[matAutocomplete]="autoDiagnosis" (keyup)="onDiagnosisInputKeyup(diagnosisInput.value, i)" />
</mat-form-field>

<mat-autocomplete #autoDiagnosis="matAutocomplete" autoActiveFirstOption [displayWith]="displayDiagnosis"
(optionSelected)="onDiagnosisSelected($event.option.value, i)">
<mat-option *ngFor="let diag of suggestedDiagnosisList[i]" [value]="diag">
{{ diag.term }}
</mat-option>
</mat-autocomplete>
</div>

<div class="col-xs-12 col-sm-3 m-t-10">
<button
mat-mini-fab
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
implements OnInit, OnChanges, DoCheck
{
utils = new GeneralUtils(this.fb, this.sessionstorage);
suggestedDiagnosisList: any = [];

@Input()
generalDiagnosisForm!: FormGroup;
Expand All @@ -56,12 +57,14 @@
current_language_set: any;
designation: any;
specialist!: boolean;

constructor(
private fb: FormBuilder,
public httpServiceService: HttpServiceService,
private doctorService: DoctorService,
private confirmationService: ConfirmationService,
readonly sessionstorage: SessionStorageService,
private masterdataService: MasterdataService

Check failure on line 67 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/general-opd-diagnosis/general-opd-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Insert `,`
) {}

ngOnInit() {
Expand Down Expand Up @@ -186,8 +189,7 @@
(<FormGroup>diagnosisArrayList.at(i)).controls[
'viewProvisionalDiagnosisProvided'
].disable();
if (diagnosisArrayList.length < savedDiagnosisData.length)
this.addDiagnosis();
this.addDiagnosis();
}
}
}
Expand All @@ -204,13 +206,11 @@
);
}
}
getProvisionalDiagnosisList(): AbstractControl[] | null {
const provisionalDiagnosisListControl = this.generalDiagnosisForm.get(
'provisionalDiagnosisList',
get provisionalDiagnosisControls(): AbstractControl[] {
return (
(this.generalDiagnosisForm.get('provisionalDiagnosisList') as FormArray)
?.controls || []
);
return provisionalDiagnosisListControl instanceof FormArray
? provisionalDiagnosisListControl.controls
: null;
}

removeDiagnosisFromList(
Expand Down Expand Up @@ -252,4 +252,35 @@
return true;
}
}

onDiagnosisInputKeyup(value: string, index: number) {
if (value.length >= 3) {
this.masterdataService
.searchDiagnosisBasedOnPageNo(value, index)
.subscribe((results: any) => {
this.suggestedDiagnosisList[index] = results?.data?.sctMaster;
});
} else {
this.suggestedDiagnosisList[index] = [];
}
}

displayDiagnosis(diagnosis: any): string {
return typeof diagnosis === 'string' ? diagnosis : diagnosis?.term || '';
}

onDiagnosisSelected(selected: any, index: number) {
// this.patientQuickConsultForm.get(['provisionalDiagnosisList', index])?.setValue(selected);
const diagnosisFormArray = this.generalDiagnosisForm.get(
'provisionalDiagnosisList'

Check failure on line 275 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/general-opd-diagnosis/general-opd-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Insert `,`
) as FormArray;
const diagnosisFormGroup = diagnosisFormArray.at(index) as FormGroup;

// Set the nested and top-level fields
diagnosisFormGroup.patchValue({
viewProvisionalDiagnosisProvided: selected,
conceptID: selected?.conceptID || null,
term: selected?.term || null,
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,40 +118,29 @@ <h4>{{ current_language_set?.casesheet?.provisionalDiag }}</h4>
<ng-container formArrayName="provisionalDiagnosisList">
<div
*ngFor="
let diagnosis of getProvisionalDiagnosisList();
let diagnosis of provisionalDiagnosisControls;
let i = index;
let isLast = last
"
>
<ng-container [formGroupName]="i">
<div class="row">
<div class="col-xs-12 col-sm-9">
<mat-form-field class="input-full-width">
<input
matInput
allowText="inputFieldValidator"
appDiagnosisSearch
[diagnosisListForm]="diagnosis"
name="viewDiagnosisProvided"
formControlName="viewProvisionalDiagnosisProvided"
maxlength="100"
minlength="3"
[previousSelected]="
generalDiagnosisForm.value.provisionalDiagnosisList
"
/>
<mat-icon
class="search-btn cursorPointer"
matSuffix
appDiagnosisSearch
[diagnosisListForm]="diagnosis"
[previousSelected]="
generalDiagnosisForm.value?.provisionalDiagnosisList
"
>search</mat-icon
>
</mat-form-field>
</div>
<div class="col-xs-12 col-sm-8 col-md-9">
<mat-form-field class="input-full-width" appearance="fill">
<mat-label>{{ current_language_set?.casesheet?.provisionalDiag }}</mat-label>
<input matInput type="text" autocomplete="off" name="viewProvisionalDiagnosisProvided"
formControlName="viewProvisionalDiagnosisProvided" minlength="3" maxlength="100" required #diagnosisInput
[matAutocomplete]="autoDiagnosis" (keyup)="onDiagnosisInputKeyup(diagnosisInput.value, i)" />
</mat-form-field>

<mat-autocomplete #autoDiagnosis="matAutocomplete" autoActiveFirstOption [displayWith]="displayDiagnosis"
(optionSelected)="onDiagnosisSelected($event.option.value, i)">
<mat-option *ngFor="let diag of suggestedDiagnosisList[i]" [value]="diag">
{{ diag.term }}
</mat-option>
</mat-autocomplete>
</div>

<div class="col-xs-12 col-sm-3 m-t-10">
<button
mat-mini-fab
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
visitCategory: any;
attendantType: any;
enableNCDCondition = false;
suggestedDiagnosisList: any = [];


Check failure on line 64 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/ncd-care-diagnosis/ncd-care-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Delete `⏎`
constructor(
private fb: FormBuilder,
private masterdataService: MasterdataService,
Expand Down Expand Up @@ -178,8 +181,7 @@
(<FormGroup>diagnosisArrayList.at(i)).controls[
'viewProvisionalDiagnosisProvided'
].disable();
if (diagnosisArrayList.length < savedDiagnosisData.length)
this.addDiagnosis();
this.addDiagnosis();
}
}
}
Expand All @@ -197,13 +199,11 @@
}
}

getProvisionalDiagnosisList(): AbstractControl[] | null {
const provisionalDiagnosisListControl = this.generalDiagnosisForm.get(
'provisionalDiagnosisList',
get provisionalDiagnosisControls(): AbstractControl[] {
return (
(this.generalDiagnosisForm.get('provisionalDiagnosisList') as FormArray)
?.controls || []
);
return provisionalDiagnosisListControl instanceof FormArray
? provisionalDiagnosisListControl.controls
: null;
}

removeDiagnosisFromList(
Expand Down Expand Up @@ -268,4 +268,35 @@
value,
);
}

onDiagnosisInputKeyup(value: string, index: number) {
if (value.length >= 3) {
this.masterdataService
.searchDiagnosisBasedOnPageNo(value, index)
.subscribe((results: any) => {
this.suggestedDiagnosisList[index] = results?.data?.sctMaster;
});
} else {
this.suggestedDiagnosisList[index] = [];
}
}

displayDiagnosis(diagnosis: any): string {
return typeof diagnosis === 'string' ? diagnosis : diagnosis?.term || '';
}

onDiagnosisSelected(selected: any, index: number) {
// this.patientQuickConsultForm.get(['provisionalDiagnosisList', index])?.setValue(selected);
const diagnosisFormArray = this.generalDiagnosisForm.get(
'provisionalDiagnosisList'

Check failure on line 291 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/ncd-care-diagnosis/ncd-care-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Insert `,`
) as FormArray;
const diagnosisFormGroup = diagnosisFormArray.at(index) as FormGroup;

// Set the nested and top-level fields
diagnosisFormGroup.patchValue({
viewProvisionalDiagnosisProvided: selected,
conceptID: selected?.conceptID || null,
term: selected?.term || null,
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,27 @@ <h4 *ngIf="!enableProvisionalDiag">
<ng-container formArrayName="provisionalDiagnosisList">
<div
*ngFor="
let diagnosis of getProvisionalDiagnosisList();
let diagnosis of provisionalDiagnosisControls;
let i = index;
let isLast = last
"
>
<ng-container [formGroupName]="i">
<div class="col-9">
<mat-form-field class="input-full-width">
<input
matInput
allowText="inputFieldValidator"
appDiagnosisSearch
[diagnosisListForm]="diagnosis"
name="viewDiagnosisProvided"
formControlName="viewProvisionalDiagnosisProvided"
maxlength="100"
minlength="3"
[previousSelected]="
generalDiagnosisForm.value.provisionalDiagnosisList
"
/>
<mat-icon
class="search-btn cursorPointer"
matSuffix
appDiagnosisSearch
[diagnosisListForm]="diagnosis"
[previousSelected]="
generalDiagnosisForm.value.provisionalDiagnosisList
"
>search</mat-icon
>
</mat-form-field>
</div>
<div class="col-xs-12 col-sm-8 col-md-9">
<mat-form-field class="input-full-width" appearance="fill">
<mat-label>{{ current_language_set?.casesheet?.provisionalDiag }}</mat-label>
<input matInput type="text" autocomplete="off" name="viewProvisionalDiagnosisProvided"
formControlName="viewProvisionalDiagnosisProvided" minlength="3" maxlength="100" required #diagnosisInput
[matAutocomplete]="autoDiagnosis" (keyup)="onDiagnosisInputKeyup(diagnosisInput.value, i)" />
</mat-form-field>

<mat-autocomplete #autoDiagnosis="matAutocomplete" autoActiveFirstOption [displayWith]="displayDiagnosis"
(optionSelected)="onDiagnosisSelected($event.option.value, i)">
<mat-option *ngFor="let diag of suggestedDiagnosisList[i]" [value]="diag">
{{ diag.term }}
</mat-option>
</mat-autocomplete>
</div>
<div class="col-xs-12 col-sm-3 m-t-10">
<button
mat-mini-fab
Expand Down
Loading
Loading