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

가져오기 및 내보내기

내보내기

목적과 이점

구현자는 양식 빌더의 내보내기 기능을 사용하여 나중에 활용할 수 있도록 양식 데이터를 JSON 파일로 내보내거나 다운로드할 수 있습니다. 내보낸 파일에는 양식 세부 정보와 양식 번역이 포함됩니다.

Sample JSON
{
  "formJson": {
    "id": 72,
    "uuid": "a0f19f99-8136-4dc2-9a9f-cf16e37364f2",
    "name": "Demo",
    "version": "1",
    "published": true,
    "auditInfo": {
      "creator": {
        "uuid": "c1c21e11-3f10-11e4-adec-0800271c1b75",
        "display": "superman",
        "links": [
          {
            "rel": "self",
            "uri": "http://ci-agent03.mybahmni.org/openmrs/ws/rest/v1/user/c1c21e11-3f10-11e4-adec-0800271c1b75"
          }
        ]
      },
      "dateCreated": "2017-11-07T13:31:16.000+0530",
      "changedBy": {
        "uuid": "c1c21e11-3f10-11e4-adec-0800271c1b75",
        "display": "superman",
        "links": [
          {
            "rel": "self",
            "uri": "http://ci-agent03.mybahmni.org/openmrs/ws/rest/v1/user/c1c21e11-3f10-11e4-adec-0800271c1b75"
          }
        ]
      },
      "dateChanged": "2017-11-07T14:42:58.000+0530"
    },
    "resources": [
      {
        "value": "{\"name\":\"Demo\",\"id\":72,\"uuid\":\"a0f19f99-8136-4dc2-9a9f-cf16e37364f2\",\"defaultLocale\":\"en\",\"controls\":[{\"translationKey\":\"LABEL_1\",\"type\":\"label\",\"value\":\"Label\",\"properties\":{\"location\":{\"column\":0,\"row\":0}},\"id\":\"1\"},{\"type\":\"obsControl\",\"label\":{\"translationKey\":\"TEMPERATURE_2\",\"id\":\"2\",\"units\":\"(F)\",\"type\":\"label\",\"value\":\"Temperature\"},\"properties\":{\"mandatory\":false,\"notes\":false,\"addMore\":false,\"hideLabel\":false,\"controlEvent\":false,\"location\":{\"column\":0,\"row\":1},\"abnormal\":false},\"id\":\"2\",\"concept\":{\"name\":\"Temperature\",\"uuid\":\"c37bd733-3f10-11e4-adec-0800271c1b75\",\"datatype\":\"Numeric\",\"conceptClass\":\"Misc\",\"conceptHandler\":null,\"answers\":[],\"properties\":{\"allowDecimal\":true}},\"units\":\"F\",\"hiNormal\":98.6,\"lowNormal\":98.6,\"hiAbsolute\":null,\"lowAbsolute\":null}],\"events\":{},\"translationsUrl\":\"/openmrs/ws/rest/v1/bahmniie/form/translations\"}",
        "dataType": "org.bahmni.customdatatype.datatype.FileSystemStorageDatatype",
        "uuid": "f81885b2-4779-4388-aaab-27a95fbcd263"
      }
    ]
  },
  "translations": [
    {
      "locale": "en",
      "labels": {
        "LABEL_1": "Label"
      },
      "concepts": {
        "TEMPERATURE_2": "Temperature"
      },
      "formName": "Demo",
      "version": "1"
    }
  ]
}

양식을 JSON으로 내보내려면 양식 옆의 다운로드 아이콘을 클릭합니다.

imageedit_1_9226162105.jpg

일괄 내보내기

Bahmni 0.93부터 구현자는 여러 양식을 한 번에 내보낼 수 있습니다. 아래 이미지와 같이 게시된 각 양식에 선택 확인란이 표시됩니다. 다운로드할 양식을 선택하고 ‘Export’ 버튼을 클릭하면 ZIP 파일이 다운로드됩니다.

게시된 양식만 내보내도록 선택할 수 있습니다. 초안 상태의 양식에는 선택 확인란이 없습니다. 단일 양식은 각 양식 옆의 다운로드 아이콘을 사용하여 ‘.json’ 형식으로 다운로드할 수 있습니다. 한 번에 다운로드할 수 있는 양식의 최대 개수는 20개입니다.

image2021-9-26_16-52-32.png

가져오기

목적과 이점

구현자는 양식 빌더의 가져오기 기능을 사용하여 JSON 파일로 관찰 양식을 가져오거나 생성할 수 있습니다. 가져오기 기능으로 생성한 새 양식은 기본적으로 게시되지 않고 초안으로 저장됩니다. 구현자가 양식을 게시해야 합니다.

Sample JSON
{
  "formJson": {
    "id": 72,
    "uuid": "a0f19f99-8136-4dc2-9a9f-cf16e37364f2",
    "name": "Demo",
    "version": "1",
    "published": true,
    "auditInfo": {
      "creator": {
        "uuid": "c1c21e11-3f10-11e4-adec-0800271c1b75",
        "display": "superman",
        "links": [
          {
            "rel": "self",
            "uri": "http://ci-agent03.mybahmni.org/openmrs/ws/rest/v1/user/c1c21e11-3f10-11e4-adec-0800271c1b75"
          }
        ]
      },
      "dateCreated": "2017-11-07T13:31:16.000+0530",
      "changedBy": {
        "uuid": "c1c21e11-3f10-11e4-adec-0800271c1b75",
        "display": "superman",
        "links": [
          {
            "rel": "self",
            "uri": "http://ci-agent03.mybahmni.org/openmrs/ws/rest/v1/user/c1c21e11-3f10-11e4-adec-0800271c1b75"
          }
        ]
      },
      "dateChanged": "2017-11-07T14:42:58.000+0530"
    },
    "resources": [
      {
        "value": "{\"name\":\"Demo\",\"id\":72,\"uuid\":\"a0f19f99-8136-4dc2-9a9f-cf16e37364f2\",\"defaultLocale\":\"en\",\"controls\":[{\"translationKey\":\"LABEL_1\",\"type\":\"label\",\"value\":\"Label\",\"properties\":{\"location\":{\"column\":0,\"row\":0}},\"id\":\"1\"},{\"type\":\"obsControl\",\"label\":{\"translationKey\":\"TEMPERATURE_2\",\"id\":\"2\",\"units\":\"(F)\",\"type\":\"label\",\"value\":\"Temperature\"},\"properties\":{\"mandatory\":false,\"notes\":false,\"addMore\":false,\"hideLabel\":false,\"controlEvent\":false,\"location\":{\"column\":0,\"row\":1},\"abnormal\":false},\"id\":\"2\",\"concept\":{\"name\":\"Temperature\",\"uuid\":\"c37bd733-3f10-11e4-adec-0800271c1b75\",\"datatype\":\"Numeric\",\"conceptClass\":\"Misc\",\"conceptHandler\":null,\"answers\":[],\"properties\":{\"allowDecimal\":true}},\"units\":\"F\",\"hiNormal\":98.6,\"lowNormal\":98.6,\"hiAbsolute\":null,\"lowAbsolute\":null}],\"events\":{},\"translationsUrl\":\"/openmrs/ws/rest/v1/bahmniie/form/translations\"}",
        "dataType": "org.bahmni.customdatatype.datatype.FileSystemStorageDatatype",
        "uuid": "f81885b2-4779-4388-aaab-27a95fbcd263"
      }
    ]
  },
  "translations": [
    {
      "locale": "en",
      "labels": {
        "LABEL_1": "Label"
      },
      "concepts": {
        "TEMPERATURE_2": "Temperature"
      },
      "formName": "Demo",
      "version": "1"
    }
  ]
}

양식을 가져오려면 양식 빌더 헤더의 Import 버튼을 클릭하고 업로드할 JSON 파일을 선택합니다.

imageedit_4_4540535043.jpg
원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗