{"id":171,"date":"2023-10-26T14:54:16","date_gmt":"2023-10-26T14:54:16","guid":{"rendered":"https:\/\/xnat-repository.icr.ac.uk\/?page_id=171"},"modified":"2023-12-07T14:00:28","modified_gmt":"2023-12-07T14:00:28","slug":"custom-forms","status":"publish","type":"page","link":"https:\/\/xnat-repository.icr.ac.uk\/?page_id=171","title":{"rendered":"Custom forms"},"content":{"rendered":"<div class=\"n2_clear\"><ss3-force-full-width data-overflow-x=\"body\" data-horizontal-selector=\"body\"><div class=\"n2-section-smartslider fitvidsignore  n2_clear\" data-ssid=\"4\"><div id=\"n2-ss-4-align\" class=\"n2-ss-align\"><div class=\"n2-padding\"><div id=\"n2-ss-4\" data-creator=\"Smart Slider 3\" data-responsive=\"fullwidth\" class=\"n2-ss-slider n2-ow n2-has-hover n2notransition  \">\n        <div class=\"n2-ss-slider-1 n2-ow\">\n            <div class=\"n2-ss-slider-2 n2-ow\">\n                <div class=\"n2-ss-slide-backgrounds n2-ow-all\"><div class=\"n2-ss-slide-background\" data-public-id=\"1\" data-mode=\"fill\"><div class=\"n2-ss-slide-background-image\" data-blur=\"0\" data-opacity=\"100\" data-x=\"50\" data-y=\"50\" data-alt=\"XNAT-OHIF viewer\" data-title=\"\"><picture class=\"skip-lazy\" data-skip-lazy=\"1\"><img decoding=\"async\" src=\"\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/10\/viewer_multimodal_1900x600.png\" alt=\"XNAT-OHIF viewer\" title=\"\" loading=\"lazy\" class=\"skip-lazy\" data-skip-lazy=\"1\"><\/picture><\/div><div data-color=\"RGBA(255,255,255,0)\" style=\"background-color: RGBA(255,255,255,0);\" class=\"n2-ss-slide-background-color\"><\/div><\/div><\/div>                <div class=\"n2-ss-slider-3 n2-ow\">\n                    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 1900 600\" data-related-device=\"desktopPortrait\" class=\"n2-ow n2-ss-preserve-size n2-ss-preserve-size--slider n2-ss-slide-limiter\"><\/svg><div data-first=\"1\" data-slide-duration=\"0\" data-id=\"28\" data-slide-public-id=\"1\" data-title=\"viewer_multimodal_1900x600\" class=\"n2-ss-slide n2-ow  n2-ss-slide-28\"><div role=\"note\" class=\"n2-ss-slide--focus\" tabindex=\"-1\">viewer_multimodal_1900x600<\/div><div class=\"n2-ss-layers-container n2-ss-slide-limiter n2-ow\"><div class=\"n2-ss-layer n2-ow n-uc-QNdIH15tGneR\" data-sstype=\"slide\" data-pm=\"default\"><\/div><\/div><\/div>                <\/div>\n                            <\/div>\n        <\/div>\n        <\/div><ss3-loader><\/ss3-loader><\/div><\/div><div class=\"n2_clear\"><\/div><\/div><\/ss3-force-full-width><\/div>\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Our technology: custom forms<\/h2>\n\n\n\n<p>XNAT is an advanced management system for research images. It uses multiple technologies to provide researchers with the tools they need to process data and view data. The ICR has been at the forefront of developing new capabilities for XNAT and are early adopters of XNAT&#8217;s custom forms. <\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-media-text is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"870\" height=\"1024\" src=\"https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/12\/custom_form-870x1024.png\" alt=\"\" class=\"wp-image-759 size-full\" srcset=\"https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/12\/custom_form-870x1024.png 870w, https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/12\/custom_form-340x400.png 340w, https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/12\/custom_form-768x904.png 768w, https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/12\/custom_form-1305x1536.png 1305w, https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/12\/custom_form-1740x2048.png 1740w, https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/12\/custom_form.png 1752w\" sizes=\"auto, (max-width: 870px) 100vw, 870px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p>Custom forms are a welcome recent addition to the XNAT platform. It was previously possible to create so-called &#8220;custom variables&#8221; within XNAT. These were user-defined fields that could be set from the GUI of the XNAT webapp by project owners and were additional to the fields defined within XNAT&#8217;s internal schema. However, the programmatic interface to these custom variables was minimal and, moreover, the options to control how custom variables were displayed to the user was very limited.<\/p>\n\n\n\n<p>As of version 1.8.8 of XNAT, custom variables have been superseded by entries that can be filled in using custom forms, which can be saved and reused across multiple projects. Custom forms are the ideal method for implementing electronic case report forms (eCRF) within XNAT. The development team has leveraged the power of <a href=\"https:\/\/form.io\/\">form.io<\/a> to allow XNAT users with special &#8220;form designer&#8221; privileges to add sophisticated data entry facilities to projects, including text fields, radio buttons, multiple selection widgets, dates and layout features such as tabs. Forms can also feature links and the entries are accessible programmatically. This makes it extremely simple to forward users dynamically to other web-based resources.<\/p>\n<\/div><\/div>\n\n\n\n<div style=\"height:55px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>  <\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>The video here shows the prototype of a data entry environment set up for Cancer Research UK&#8217;s sarcoma accelerator project. It shows a custom form with multiple tabs, the first of which allows users to link to different systems for viewing digital pathology images. The second tab shows a mechanism by which we can realise the schematic diagram in the video&#8217;s &#8220;poster image&#8221; and link the image processing environment in XNAT to genomics research performed in the webapp cBioPortal. Finally, the video shows how we can navigate through the different tabs of an online form and enter clinical data.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<iframe loading=\"lazy\" width=\"100%\" height=\"400\" src=\"https:\/\/www.youtube.com\/embed\/_MGxH_6X-vQ?rel=0&#038;si=-jkiTnNyak1ZL9i5\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Our technology: custom forms XNAT is an advanced management system for research images. It uses multiple technologies to provide researchers with the tools they need to process data and view data. The ICR has been at the forefront of developing new capabilities for XNAT and are early adopters of XNAT&#8217;s custom forms. Custom forms are [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":94,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-171","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=171"}],"version-history":[{"count":17,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages\/171\/revisions"}],"predecessor-version":[{"id":773,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages\/171\/revisions\/773"}],"up":[{"embeddable":true,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages\/94"}],"wp:attachment":[{"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}