...
Expand |
---|
title | Click here to see the JSON code.. |
---|
|
Code Block |
---|
| {
"name": "specimenCollection",
"data": {
"visitFields": {
"title": "Visit Details",
"fields": [
[
{
"name": "visit.name",
"baseField": "visit.name",
"type": "span",
"width": "150px"
},
{
"name": "visit.clinicalDiagnoses",
"baseField": "visit.clinicalDiagnoses",
"width": "200px"
},
{
"name": "visit.comments",
"baseField": "visit.comments",
"width": "200px"
}
]
]
},
"fieldGroups": [
{
"title": "Frozen Event",
"criteria": {
"op": "AND",
"rules": [
{
"field": "specimen.specimenClass",
"op": "==",
"value": "'Tissue'"
}
]
},
"fields": [
{
"name": "specimen.label",
"baseField": "specimen.label",
"type": "span"
},
{
"name": "specimen.type",
"baseField": "specimen.type",
"type": "span"
},
{
"name": "events.SpecimenFrozenEvent.time",
"baseField": "specimen.events.SpecimenFrozenEvent.time"
},
{
"name": "events.SpecimenFrozenEvent.user",
"baseField": "specimen.events.SpecimenFrozenEvent.user"
},
{
"name": "events.SpecimenFrozenEvent.frozenMethod",
"baseField": "specimen.events.SpecimenFrozenEvent.frozenMethod"
}
]
}
]
}
} |
The below table explains different sections of the nth step: Section | Details |
---|
visitFields | If visit fields need to be displayed on the nth step, this section needs to be added. There will be only one section of this displaying one row for a visit being collected. | fields | Within visitFields section, include all fields to be displayed in a table format within the 'fields' section of JSON. | title | Title of each section/table in the nth step. | fieldGroups | If fields need to be displayed in separate sections or tables, multiple sections can be within fieldGroups. For example: 'Primary Specimen details', 'Aliquot details' etc. Each section can have a title, criteria and set of fields. | criteria | This defines conditions for displaying fields in each section. For example 'Centrifuge event details' section can be displayed only for 'Whole Blood' & 'Primary' specimens. |
Screenshot after specimen collection page configuration: |
...
Example JSON
Download
...
Code Block |
---|
|
{
"name": "specimenCollection",
"data": {
"showVisitDetails": false,
"showCollectionEvent": false,
"showReceivedEvent": true,
"defReceiveQuality": "To be Received", //defaults received qualtity to 'To be Received'
"defCollectionStatus" : "Collected", //defaults collection status to 'Collected'
"defCollectionDate" : "current_date", // defaults collection dateand received dates to current date. The supported values are none, current_date and visit_date.
...
}
} |
The above configuration hides visit fields, collection event fields and displays the received event fields. When the above configuration is not present, all the fields are displayed by default.
From v8.1, the collection and receive dates would be blank by default. You can set the collection and receive dates as below:
Code | Description |
---|
defCollectionDate = 'visit_date' | The common collection and receive dates will be the same as whatever is populated in the visit date field. |
defCollectionDate = 'current_date' | The collection and receive dates will be the current/present date/time. |
defCollectionDate = 'none' | You are forced to select a date for collection and received fields. |
Screenshot before configuration:
...