Skip to content

Instantly share code, notes, and snippets.

@frankdavidcorona
Last active November 7, 2018 14:11
Show Gist options
  • Save frankdavidcorona/3900b844f6e5667b79aa8a69c0c12881 to your computer and use it in GitHub Desktop.
Save frankdavidcorona/3900b844f6e5667b79aa8a69c0c12881 to your computer and use it in GitHub Desktop.
Configuration for run Unified Patient Profile.
<!-- <rw-patient-form [adding]="false" ></rw-patient-form> -->
<rw-patient-info [params]="params" (onCaseAction)="caseAction($event)" (patientInformation)="catchPatient($event)"
(onSelectFinancialDetail)="onSelectFinancialDetail($event)"></rw-patient-info>
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'flox-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
title: any;
params = {
id: '1052401*01',
/* 5bb77fceae0a0e0018ab7d5e | 5ac7b01912564c9b3082b7b5 | 5ba91f977196b40019a92103 | MC0000076659 | 1052401*01 */
};
ngOnInit() {
// setTimeout((() => {
// this.params = { id: '5ac7b3d412564c9b3082d23c' };
// }), 20000);
}
caseAction($event: any): void {
console.log($event);
}
catchPatient($event: any): void {
console.log($event);
}
onSelectFinancialDetail($event): void {
console.log($event);
}
}
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { MatDatepickerModule, MatInputModule, MatOptionModule, MatSelectModule, MatTabsModule } from '@angular/material';
import { RouterModule } from '@angular/router';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgSecurityModule } from '@redwagon/ng-security';
import { RwAvatarModule } from '@redwagon/rw-avatar';
import { AppComponent } from './app.component';
import { PatientModule } from '../../projects/rw-patient/src/lib/patient.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
CommonModule,
ReactiveFormsModule,
BrowserAnimationsModule,
MatInputModule,
MatDatepickerModule,
MatSelectModule,
MatOptionModule,
MatTabsModule,
RouterModule.forRoot([
{
path: 'app',
component: AppComponent
}, {
path: 'patient/:patientId',
component: AppComponent
}
]),
NgSecurityModule.forRoot({
apikey: 'TZP9la8NQ6uXuYLhszIRYOUIcVcLK635',
apikeyClient: 'TZP9la8NQ6uXuYLhszIRYOUIcVcLK635',
loginUrl: 'http://api.develop.redwagon.xyz/auth',
accountUrl: 'http://api.develop.redwagon.xyz/users',
connectToAccount: false,
sessionStorageKey: 'logInUser',
username: 'osiel8809@gmail.com',
password: '123456'
}),
PatientModule.forRoot({
patientUrl: 'http://api.develop.redwagon.xyz/patients',
documentURL: 'http://api.develop.redwagon.xyz/documents',
analyticUrl: 'http://api.develop.redwagon.xyz/analytics',
casesUrl: 'http://api.develop.redwagon.xyz/cm/cases'
}),
RwAvatarModule.forRoot({
documentStorageKey: 'documentCache',
documentUrl: 'http://api.develop.redwagon.xyz/documents',
avatarUrl: 'https://cdn.primaverahealthcare.com/static/images/avatars/profile.jpg'
})
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment