병동 관리
목적 및 이점
병동 관리는 입원 환자 모듈의 일부이며 병동과 병상 위치를 설정하는 데 사용합니다.
Bahmni에서는 병동을 2단계 계층 구조로 설정해야 합니다. 즉, 병상을 상위 병동의 하위 위치인 병실 또는 하위 병동에 매핑합니다.
올바른 Bahmni 병동 설정 예시는 아래와 같습니다.

구성
설정 변수
병동 관리에 사용할 설정 변수
SET @parent_location_id = (select location_id from location where name='General Ward');
SET @location_id = (select location_id from location where name='Physical General Ward');
SET @location_tag_id = (select location_tag_id from location_tag where name='Admission Location');병동 설정
insert into location (name, description, creator, retired, date_created, uuid) values('General Ward', 'General Ward', 1, 0, NOW(), UUID());
insert into location (name, description, creator, retired, date_created, uuid, parent_location) values('Physical General Ward', '1st Floor of General Ward', 1, 0, NOW(), UUID(), @parent_location_id);
insert into location_tag_map values( @parent_location_id , @location_tag_id);
insert into location_tag_map values( @location_id , @location_tag_id);병상 유형 추가
insert into bed_type values(1, 'deluxe', 'deluxe bed', 'DLX');병상 추가
insert into bed (bed_id, bed_number, status, bed_type_id, uuid, creator, date_created, voided) values(1, '304-a', 'AVAILABLE', 1, UUID(), 1, NOW(), false);병상을 병동 목록에 매핑
insert into bed_location_map(bed_location_map_id, location_id, row_number, column_number, bed_id) values(1, @location_id, 1, 1, 1);병상 관리 SQL 파일 예시
이 병상 관리 SQL 파일 예시는 병상 유형과 병상을 추가하고 병상을 병동 목록에 매핑합니다. 필요에 맞게 SQL 파일을 수정해 openmrs 데이터베이스로 가져올 수 있습니다.
mysql -uroot -ppassword openmrs < bed_management_locations.sql원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0