By default, MRN and visit sites display all sites available in the system. You can restrict these to show only the CP sites.
On setting the below-mentioned code block for the registration site, only the CP sites are displayed in the drop-down:
{ "name" : "cpr.site", "caption" : "Registration Site", "type" : "dropdown", "optional" : true, "listSource" : { "apiUrl" : "collection-protocols/{{cp.id}}/sites", // Restricts registration sites to CP sites "displayProp" : "name", "selectProp" : "name", "queryParams" : { } } } |
Displayed only sites associated with the 'ABPC' collection protocol:
By default, the registration site only displays CP sites. |
Form version v7.2, setting the below-mentioned code block for the MRN site, you can show only the sites associated with that CP:
{ "name" : "cpr.participant.pmis", "type" : "collection", "fields" : [ { "name" : "siteName", "caption" : "Site", "type" : "dropdown", "multiple" : false, "optional" : true, "listSource" : { "apiUrl" : "collection-protocols/{{cp.id}}/sites", // Restricts MRN sites to CP sites "displayProp" : "name", "selectProp" : "name", "queryParams" : { "dynamic" : { "operation" : "op" }, "static" : { "resource" : "ParticipantPhi" }, "search" : "name" } } }, { "name" : "mrn", "caption" : "MRN", "type" : "text", "optional" : true } ] } |
Displayed only sites related to the 'ABPC' collection protocol:
In version v7.0, setting the below-mentioned code block for the visit site, you can show only the sites associated with that CP:
{ "name" : "visit.site", "caption" : "Site", "type" : "dropdown", "multiple" : false, "optional" : false, "listSource" : { "apiUrl" : "collection-protocols/{{cp.id}}/sites", // Restricts visit sites to CP sites "displayProp" : "name", "selectProp" : "name", "queryParams" : { "dynamic" : { "operation" : "op" }, "search" : "name" } }, "showIf" : { "op" : "AND", "rules" : [ { "field" : "visit.status", "op" : "!=", "value" : "'Missed Collection'" } ] } } |
Displayed only sites related to the 'ABPC' collection protocol: