OpenSpecimen allows configuring calculated fields to be displayed on overview pages.
Note
|
A more robust example of the above is no blank space when either first name or last name is not specified.
|
|
|
|
|
|
|
|
|
|
|
|
Participant Overview Page Visit Overview Page Specimen Overview Page |
Participant Overview Page Specimen Overview Page |
Visit Overview Page Specimen Overview Page |
Visit Overview Page Specimen Overview Page |
|
|
|
|
#1. If Participant is dead, then it calculates the Age from DOB to Date of death.
#2. If participant is alive then it calculates the Age from DOB to Current Date. |
|
Example JSON Download
From v10.2 onwards, on the JSON configured overview page, calculated fields can be used to display the hyperlinked URLs.
//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" } |
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 Identifier | |
Visit Identifier | specimen.visitId |
Specimen Identifier | specimen.id |