Skip to content

UNC R0.2 Pre MVP Manual Brochure

xinyang.li edited this page Jul 12, 2024 · 1 revision

Config cases display and assign to users

Change the display configuration file format from Excel to CSV

Prepare the Config CSV

  • Required info: User, Case No. config_display_csv
    • Adjacent Rows with the same User and same Case No. will be considered as one task.
    • User; Case No.; Path; Collapse; Highlight; Top in CSV are case sensitive. Please follow the above screenshot’s format
      • Please mark True if you would like to collapse some info; Please mark True if you would like to highlight some info; Please input number if you would like to move them to the top, and small numbers will go higher position in the case detail screen’s Important info section.
  • Path: xx.xx OR xx.xx.xx
    • How to find a path: You can assign a case to your AugMed account to review the UI layout and find out the title of each section on AugMed. Then config path and related actions. For example, the following titles in blue consist of path in this case 100. case_review_detail

    Notes:

    1. The path is case-sensitive.
    2. Not able to configure the next layer, such as Headache or Fever, in Chief Complaint and Current Symptoms.

Add config via API

  • URL: {your_host}/admin/config/upload
  • Method: Post
  • Upload file: upload_config_api

Collapse, Highlight and Top related UI

  1. Collapse of path xx.xx (PATIENT COMPLAINT.Current Symptoms collapse_2_layer
  2. Collapse of path xx.xx.xx (BACKGROUND.Patient Demographics. Age) collapse_3_layer
  3. Highlight of path xx.xx (PATIENT COMPLAINT.Chief Complaint) highlight_2_layer
  4. Highlight of path xx.xx.xx (PHYSICAL EXAMINATION.Vital signs) highlight_3_layer
  5. Move path xx.xx to Top top_2_layer
  6. Move path xx.xx.xx to Top top_3_layer

Config Answer page

User can config answer page through api for many of rounds of experiments

Request detail

  • URL: {your_host}/admin/config/answer
  • Method: Post
  • Request body:
    [
        {
          "type": "Text",
          "title": "What is your diagnosis based on the information you currently have?",
          "required":"true"
        },
        {
          "type": "Paragraph",
          "title": "What additional information do you require to make a final diagnosis?",
          "required":"true"
        },
        {
          "type": "SingleChoice",
          "title": "What is your confidence?",
          "options": [
            "High Confidence",
            "Medium Confidence",
          "Low  Confidence"
          ],
          "required":"false"
        },
        {
          "type": "MultipleChoice",
          "title": "What medical field are you interested in?",
          "options": [
            "Cardiology",
            "Neurology",
            "Orthopedics",
            "Radiology"
          ],
          "required":"true"
        }
    ]  

    Notes: There are 4 types of questions: Text, Paragraph, SingleChoice, MultipleChoice Questions will be displayed in Answer page by order.

Pull user’s answer results from the database

We're using PostgreSQL for database, so you can either download data by development tools like: pgAdmin or command line base on psql client.

Use Script to download the answer results from database

1. Install psql

For Linux(Ubuntu)

sudo apt-get install postgresql-client

For MacOS

brew install postgresql

or libpq that gives you psql, pg_dump and a whole bunch of other client utilities

brew install libpq

2. Run command to download answer data

\COPY answer TO '{output_csv_file_path}' WITH DELIMITER ',' CSV HEADER