diff --git a/CHANGELOG.md b/CHANGELOG.md index 30558dd..81af160 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to the Imagemap module will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [1.7.0] - 2020-10-20 +### Added +- Add fibromyalgia map (willsvankumc) +- Add FR_REGION IMAGEMAP (hpotier) + +## Changed +- interrupt an infinite loop on radio buttons in later redcap versions (Kyle Chesney) +- Fix 'Deselect Issues #52' in later redcap versions (Kyle Chesney) + + ## [1.6.0] - 2020-08-17 ### Added - Reduce mbody image size by 50% (willsvankumc) diff --git a/README.md b/README.md index e8b765a..74499b2 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,15 @@ DO-Touch.NET body region image map designed for use in osteopathic manipulative The 66 Swollen / 68 Tender Joint Count can be used to record the number of tender and swollen joints in patients with inflammatory arthritis e.g. psoriatic arthritis, rheumatoid arthritis. These counts can be used in calculated fields to generate disease activity scores in combination with other variables e.g. DAPSA, DAS28 scores. ![66SWOLLEN_68TENDER_JOINT_COUNT](./img/66swollen_68tender_joint_count.png) +**`FR_REGION`** + +French Region 2020 : to localize in one click a region - Région Française 2020 : Pour localiser en un clic une région. +![FR_REGION](./img/france_region_nb.png) + +**`FIBROMYALGIA_BODY`** + +This is a Patient self-report figure for the Assessment of Fibromyalgia. +![FIBROMYALGIA_BODY](./img/fibromyalgia.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: @@ -127,6 +136,8 @@ To display one of the images above in a survey or data entry form, add a new fie @IMAGEMAP=DO_TOUCH_NET_BODY_COLOUR @IMAGEMAP=DO_TOUCH_NET_BODY_GREY @IMAGEMAP=66SWOLLEN_68TENDER_JOINT_COUNT +@IMAGEMAP=FR_REGION +@IMAGEMAP=FIBROMYALGIA_BODY ``` 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. @@ -148,3 +159,5 @@ This project includes an [Example Instrument](docs/Instrument\ Example.zip) that * The Michigan Body Map (MBODY) image was created by the Division of Pain Research Anesthesiology of the University of Michigan. Please refer to their [website](https://medicine.umich.edu/dept/pain-research/clinical-research/michigan-body-map-mbm) for copyright information. * The DO-Touch.NET body map was created by Jamie Carroll using the international standard for osteopathic manipulative medicine (OMM) research established by DO-Touch.NET. Use of this image map requires the attributions to remain in place. [website](https://www.do-touch.net). Jane Coe Johnson jjohnson@atsu.edu assisted Geoffroey-Allen Franklin gfranklin@atsu.edu updating information about the DO-Touch.NET image maps. * The 66 Swollen / 68 Tender Joint Map was contributed by Dr Tom Lynch from the Institute of Bone and Joint Research, University of Sydney. The image was adopted with permission from Dr Alexis Ogdie-Beatty and first published in this article from the OMERACT group: [website](http://www.jrheum.org/content/early/2019/05/24/jrheum.181089). + * The FR_REGION was contributed by Hugo Potier of University Hospital of Nîmes. The image source come from [data.gouv.fr](http://data.gouv.fr). + * Fibromyalgia self-report image appears in the article ["Fibromyalgia: A Clinical Review"](https://jamanetwork.com/journals/jama/fullarticle/1860480) by Daniel J. Clauw and is provided by Thomas Van Doorn and Dr. Andrea Nicol. Copyright 2014 American Medical Association. All rights reserved. diff --git a/VERSION b/VERSION index dc1e644..bd8bf88 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.6.0 +1.7.0 diff --git a/config.json b/config.json index 5ea1bec..9457351 100644 --- a/config.json +++ b/config.json @@ -273,6 +273,33 @@ "height": 614, "hideInput": true, "map": "maps/66swollen_68tender_joint_count.html" + }, + "FR_REGION": { + "name": "fr_region", + "alt": "French Region 2020 - Région Française 2020", + "desc": "French Region 2020 : to localize in one click a region - Région Française 2020 : Pour localiser en un clic une région.", + "options": "1,2,3,4,6,11,24,27,28,32,44,52,53,75,76,84,93,94", + "data_dict_default": "1,GUADELOUPE | 2,MARTINIQUE | 3,GUYANE | 4,LA REUNION | 6,MAYOTTE | 11,ILE DE FRANCE | 24,CENTRE VAL DE LOIRE | 27,BOURGOGNE FRANCHE COMTE | 28,NORMANDIE | 32,HAUTS DE FRANCE | 44,GRAND EST | 52,PAYS DE LA LOIRE | 53,BRETAGNE | 75,NOUVELLE AQUITAINE | 76,OCCITANIE | 84,AUVERGNE RHONE ALPES | 93,PROVENCE ALPES COTE D AZUR | 94,CORSE", + "image": "img/france_region_nb.png", + "width": 765, + "height": 701, + "hideInput": true, + "singleSelect": true, + "map": "maps/fr_region.html" + }, + "FIBROMYALGIA_BODY": { + "name": "fibromyalgia_body", + "alt": "Fibromyalgia Bodymap", + "desc": "Bodymap for use in Fibromyalgia research.", + "options": "01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19", + "data_dict_default": "01, Right jaw | 02, Left jaw | 03, Neck | 04, Right Shoulder | 05, Left Shoulder | 06, Chest or breast | 07, Upper back | 08, Right upper arm | 09, Left upper arm | 10, Abdomen | 11, Lower back | 12, Right lower arm | 13, Left lower arm | 14, Right hip or buttocks | 15, Left hip or buttocks | 16, Right upper leg | 17, Left upper leg | 18, Right lower leg | 19, Left lower leg", + "image": "img/fibromyalgia.png", + "width": 708, + "height": 867, + "hideInput": true, + "singleSelect": false, + "fillColor": "0000cc", + "map": "maps/fibromyalgia.html" } } } diff --git a/docs/Instrument Example.zip b/docs/Instrument Example.zip index 55de4bc..2c51199 100644 Binary files a/docs/Instrument Example.zip and b/docs/Instrument Example.zip differ diff --git a/img/fibromyalgia.png b/img/fibromyalgia.png new file mode 100644 index 0000000..9244942 Binary files /dev/null and b/img/fibromyalgia.png differ diff --git a/img/france_region_nb.png b/img/france_region_nb.png new file mode 100644 index 0000000..c595d53 Binary files /dev/null and b/img/france_region_nb.png differ diff --git a/js/imagemap.js b/js/imagemap.js index 66e1f74..fe40507 100644 --- a/js/imagemap.js +++ b/js/imagemap.js @@ -241,9 +241,11 @@ imageMapEM.loadAreaList = function(field_name) { // For radio button questions, the main input is here - use it to set value $('input[name="'+field_name+'"]', tr).each(function() { - $(img).mapster('set',true,$(this).val()); + let val = $(this).val(); + if ( $(img).mapster('get') != val ) { // avoid infinite loop + $(img).mapster('set',true,val); + }; }); - } // Takes the values from the image map and saves them to the redcap form @@ -266,7 +268,7 @@ imageMapEM.updateAreaList = function(image, data) { var selected = data.selected; //imageMapEM.log ('is selected: ' + selected); if (checked !== selected) { - $(this).click().trigger('onclick'); + $(this).click(); //$(this).blur(); } }); diff --git a/maps/fibromyalgia.html b/maps/fibromyalgia.html new file mode 100644 index 0000000..d650e2d --- /dev/null +++ b/maps/fibromyalgia.html @@ -0,0 +1,20 @@ + +Right jaw +Left jaw +Neck +Right shoulder +Left shoulder +Chest or breast +Upper back +Right upper arm +Left upper arm +Abdomen +Lower back +Right lower arm +Left lower arm +Right hip or buttocks +Left hip or buttocks +Right upper leg +Left upper leg +Right lower leg +Left lower leg diff --git a/maps/fr_region.html b/maps/fr_region.html new file mode 100644 index 0000000..ca2c921 --- /dev/null +++ b/maps/fr_region.html @@ -0,0 +1,19 @@ + + guadeloupe + martinique + guyane + la_reunion + mayotte + ile_de_france + centre_val_de_loire + bourgogne_franche_comte + normandie + hauts_de_france + grand_est + pays_de_la_loire + bretagne + nouvelle_aquitaine + occitanie + auvergne_rhone_alpes + provence_alpe_code_d_azur + corse