Better UI Components is an Angular UI workspace consisting of libraries and tools to easily adopt openEHR concepts to your own projects.
It is based on Angular(10+) framework.
AQL builder is standalone full-featured application written in Angular (10+) for writing, executing AQL queries for clinical data and outputting results.
For detailed instructions on setting up and using the application see the AQL Builder README.md
To install this library run:
npm install @bettercare/aql-result-table
Once you have installed the library, include library to your project module:
@NgModule({
imports: [
...
AqlResultTableModule
],
bootstrap: [AppComponent]
})
export class AppModule {
}
Then you can simply use it in your component html
and provide input data:
<bui-aql-result-table
[aqlResultMetadata]="aqlResultMetadata"
[tablePresentation]="tablePresentation">
</bui-aql-result-table>
* tablePresentation
input is optional and is by default set to COMPACT
view
class AqlResultMetadata {
aql?: string;
executedAql: string;
meta?: {href: string};
resultSet: unknown[] = [];
}
enum TablePresentation {
DETAILED = 'DETAILED',
COMPACT = 'COMPACT'
}
Simply run dev server ng serve
and you are good to go.
If you have access to EHR platform, you can also specify platform url and credentials in AppComponent
.
serverConfig = {
url: undefined, // 'https://MY-EHR-PLATFORM/rest/v1/query',
username: undefined, // 'MY_USERNAME',
pwd: undefined, // 'MY_PWD'
};
In this case you will be able to write and execute your custom AQLs. Results will be immediately shown in the table.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
See our CONTRIBUTING.md guide
Feel free to use our library in your commercial and private applications
All Better UI component packages are covered by Apache 2.0
Read more about this license here