Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

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.

image-20240719-095038.png

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

  • No labels