BBahmni 한국어 매뉴얼검색
한국어 번역 완료
한국어English

출생증명서

목적

구성

birthCertificate directive 추가

birthCertificate를 새 directive로 추가하는 다음 예시를 참고하십시오.

'use strict';
angular.module('bahmni.common.displaycontrol.custom')
    .directive('birthCertificate', ['observationsService', 'appService', 'spinner', function (observationsService, appService, spinner) {
            var link = function ($scope,element) {
                var conceptNames = ["HEIGHT"];
                $scope.contentUrl = appService.configBaseUrl() + "/customDisplayControl/views/birthCertificate.html";
                spinner.forPromise(observationsService.fetch($scope.patient.uuid, conceptNames, "latest", undefined, $scope.visitUuid, undefined).then(function (response) {
                    $scope.observations = response.data;
                }), element);
            };
            return {
                restrict: 'E',
                template: '<ng-include src="contentUrl"/>',
                link: link
            }
    }])

birthCertificate 표시 페이지 생성

birthCertificate.html을 만드는 다음 예시를 참고하십시오.

<div>
    {{config.title}}
    <section class="dashboard-section">
        <ul class="form-field">
            <li ng-repeat="obsGroup in observations">
                <span class="obs-date"> {{obsGroup.conceptNameToDisplay }} </span>
                <span class="obs-date"> {{obsGroup.value}} </span>
            </li>
        </ul>
    </section>
</div>

목차

관련 문서: 표시 컨트롤
원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗