Skip to content

Commit

Permalink
Add Ladder imagemap requested by Yunfeng Dai
Browse files Browse the repository at this point in the history
  • Loading branch information
ChemiKyle committed Aug 31, 2023
1 parent 8c5d779 commit 4ad53db
Show file tree
Hide file tree
Showing 6 changed files with 3,811 additions and 3,695 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,10 @@ This is a body rendering developed at Stanford for a specific project -- no attr
This is a body rendering developed at Stanford for a specific project -- no attributions required.
![SZMN_SIDE](./img/szmn_side.png)

**`LADDER`**

Image provided by Yunfeng Dai.
![LADDER](./img/ladder_image.png)

## Usage
To display one of the images above in a survey or data entry form, add a new field of type **Text Box** and include one of the following options in the **Action Tags / Field Annotation (optional)** field:
Expand All @@ -1618,6 +1621,8 @@ To display one of the images above in a survey or data entry form, add a new fie
@IMAGEMAP=FIBROMYALGIA_BODY
@IMAGEMAP=SZMN_FRONT
@IMAGEMAP=SZMN_SIDE
@IMAGEMAP=DERM_PHOTO_BODY
@IMAGEMAP=LADDER
```

Each region of an image is associated with a key, for example, the "Ankle (front-left)" of the female body diagram is linked to the key "f34". To find a particular key for a body part, please refer to the HTML files (map files) located in the folder `maps`. After selecting multiple body parts, the field containing the action tag `@IMAGEMAP` will have as a value a string of comma-separated keys, e.g. "f36,f17,f18,f21". Similarly, if using the faces diagram, the field containing the action tag (e.g. `@IMAGEMAP=SMILE_SCALE`) will have the value corresponding to the face clicked.
Expand Down
13 changes: 13 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,19 @@
"hideInput": true,
"singleSelect": false,
"map": "maps/photoform.html"
},
"LADDER": {
"name": "ladder",
"alt": "Ladder image",
"desc": "Ladder image",
"options": "1,2,3,4,5,6,7,8,9,10",
"data_dict_default": "1, 1 | 2, 2 | 3, 3 | 4, 4 | 5, 5 | 6, 6 | 7, 7 | 8, 8 | 9, 9 | 10, 10",
"image": "img/ladder_image.png",
"width": 262,
"height": 650,
"singleSelect": true,
"hideInput": true,
"map": "maps/ladder.html"
}
}
}
Binary file modified docs/Instrument Example.zip
Binary file not shown.
Loading

0 comments on commit 4ad53db

Please sign in to comment.