Bahmni 앱 구성
구성 파일
일반적인 디렉터리 구조는 다음과 같습니다.
Typical Directory Structure for Configuration files
├── admin
├── adt
├── clinical
├── customDisplayControl
│ ├── js
│ └── views
├── documentUpload
├── home
├── orders
├── registration
│ ├── registrationCardLayout
│ │ ├── css
│ │ └── images
│ └── supplementalPaperLayout
│ └── css
└── reports
└── sql모든 기능이 활성화된 구성 파일 예시는 GitHub에서 찾을 수 있습니다. 작업을 단순화하려면 GitHub의 Bahmni 조직에 있는 작동 중인 구성 파일로 시작하는 것을 고려하십시오(이름이 "-config"로 끝나는 저장소를 찾으십시오).
앱
앱은 Bahmni의 최상위 애플리케이션입니다. 앱에는 app.json, extension.json 및 선택적으로 사용자 지정 구성 파일이 포함됩니다.
app.json
일반적인 app.json은 다음과 같습니다. 앱의 기본 구성 파일로 앱 수준의 모든 구성을 담고, 앱을 확장하는 데 사용할 수 있는 확장 기능도 정의합니다.
app.json
{
"id": "org.bahmni.newapp", // Unique ID for an app
"extensionPoints": [
{
"id": "org.bahmni.newapp.newextension", // Unique ID for an extension
"description": "Makes cheese" // Description for what an extension can do
}
],
"config" : {"keySpecificTonewapp": true} //A custom object that can be used by the application. Each application has settings that it can use
}extension.json
extension.json에는 앱에 구성된 확장 인스턴스가 들어 있습니다. 위 예시에서는 ID가 "org.bahmni.newapp.newextension"인 확장을 만들었으며, 이를 extension.json에서 사용해 새 확장을 생성합니다. 일부 확장은 다른 앱의 URL에 연결할 수 있어 기존 앱 URL을 기반으로 완전히 새로운 앱을 만들 수 있습니다. 사용자 지정 앱 생성은 더 복잡한 주제이므로 여기에서는 다루지 않습니다.
extension.json
{
// Multiple extensions can be configured within this file. Each needs a unique key, like someKey below
"someKey": { //Some key. It needs to be unique within the file, and describe what this extension does
"id": "org.bahmni.newapp.newextension.uniqueId", //Mandatory. Unique id for this extension
"extensionPointId": "org.bahmni.newapp.newextension", //Mandatory. Must match an extensionPoint defined in app.json. Describes the type of extension described by this extension
"type": "link", //Mandatory. Currently Bahmni only supports extensions of type link and config
"label": "A nice label", //Optional name for this extension. Extensions may use this to show titles etc
"translationKey":"OBSERVATIONS_BOARD_LABEL_KEY", // Optional. If
"url": "/newUrl", //Sets url of the extension to newUrl
"icon": "fa-user-md", // Optional. Used if extension supports an icon
"order": 1, // Optional. Used to order extensions of the same type if the extension supports it
"requiredPrivilege": "app:clinical:observationTab" // User privileges required to activate this extension
}
}그 밖의 파일은 특정 기능의 구성이 너무 커져 분리할 필요가 생겨 추가된 사용자 지정 구성 파일입니다.
각 앱에서 가능한 구성은 아래에 설명합니다.
하위 문서
원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0