From v10.2 onwards, on the JSON-configured overview page, calculated fields can be used to display the hyperlinked URLs.
If the URL for the record is ‘https://test.openspecimen.org/#/cp-view/6636/participants/176857/detail/overview ', you need to configure displayExpr as 'https://test.openspecimen.org/#/cp-view/{{cpr.cpId} }/participants/{{cpr.id}}/detail/overview’
//Example Code { "name" : "calcSpecimen.computedUrl", "caption" : "Specimen overview page", "type" : "text", "displayExpr" : "https://test.openspecimen.org/#/cp-view/{{cpr.cpId}}/participants/{{cpr.id}}/visits/specimens/detail/overview?specimenId={{specimen.id}}&visitId={{specimen.visitId}}", "linkText" : "View Image" }
On the user interface, the field will be displayed hyperlinked.
Below is the list of fields that are available to be used in the JSON
Field | Syntax |
Collection Protocol Identifier | cpr.cpId |
Participant Registration Identifier | participant.id |
Participant Identifier | cpr.id |
Visit Identifier | specimen.visitId |
Specimen Identifier | specimen.id |