ActivityDefinition
Usage
ActivityDefinition is used to define questionnairies and order of draw at pre-sampling stage.
References
The resource does not require to reference any additional resources.
Coding systems
Define when the notification must be shown
{
"system": "https://samplify.org/docs/fhir/dstu3/Communication/category/coding/system#/stage",
"code": "<string>" // "before-sampling-started" or "sampling-finished"
}
Specify the timeout for notification
{
"system": "https://samplify.org/docs/fhir/dstu3/Communication/category/coding/system#/deferred",
"code": "60000" // will be shown wit 60s timeout after stage triggered
}
Whether notification is dialog
MedNAIS client will save response after sampling finished
Examples
Questionnairies for anonymous flow
{
"resourceType": "ActivityDefinition",
"id": "659",
"identifier": [
{
// the resource should be used for anonymous (predefined) flow
"system": "https://samplify.org/fhir/ActivityDefinition/coding",
"value": "anonymous"
}
],
"status": "active",
"topic": [
{
"coding": [
{
// the resource should be treated as a collection of questionnairies
"system": "https://samplify.org/fhir/ActivityDefinition/coding",
"code": "questionnaire"
}
]
}
],
// related questionnairies
"relatedArtifact": [
{
"type": "composed-of",
"resource": {
"reference": "Questionnaire/652"
}
},
{
"type": "composed-of",
"resource": {
"reference": "Questionnaire/1635"
}
},
{
"type": "composed-of",
"resource": {
"reference": "Questionnaire/760"
}
}
]
}
Order of draw
{
"resourceType": "ActivityDefinition",
"id": "703",
"identifier": [
{
// the resource should be used for anonymous (predefined) flow
"system": "https://samplify.org/fhir/ActivityDefinition/coding",
"value": "anonymous"
}
],
"status": "active",
"topic": [
{
"coding": [
{
// the resource should be treated as a collection of containers to be used in procedure
"system": "https://samplify.org/fhir/ActivityDefinition/coding",
"code": "order-of-draw"
}
]
}
],
// related containers (1)
"relatedArtifact": [
{
"type": "composed-of",
"resource": {
"reference": "DataElement/789"
}
},
{
"type": "composed-of",
"resource": {
"reference": "DataElement/702"
}
},
{
"type": "composed-of",
"resource": {
"reference": "DataElement/790"
}
},
{
"type": "composed-of",
"resource": {
"reference": "DataElement/791"
}
},
{
"type": "composed-of",
"resource": {
"reference": "DataElement/788"
}
}
]
}
- DSTU3 does not offer any resource to describe container as R4 do with SpecimenDefinition.