Task
Empego uses a FHIR Task that it customizes to fit its needs.
Field | Usage | Requirements |
resourceType | FHIR requires the value to be “Task” | Requires -Task |
identifier | Empego will look here for questionnaireVersionSlug. | Required - Value should be a valid questionnaire version slug provided by Empego. |
status | Emprego currently only supports POST; therefore, the status should always be draft . | Requires - draft |
code | A Task is a FHIR entity that match the most the use case of an Empego Consultation without a linked Patient; therefore the code should be Consultation as per the https://browser.ihtsdotools.org/?perspective=full&conceptId1=409063005&edition=MAIN&release=&languages=en system. | Requires - 11429006 |Consultation |
intent | Codes indicating the degree of authority/intentionality associated with a care plan. | Requires - plan |
priority | Empego currently only support immediate Consultation; therefore the priority should always be stat . | Requires - stats |
input | See Inputs | Required |
Type | Value Type | Value |
phone | valueString | The patient’s phone number. |
email | valueString | The valid patient’s email. |
patientLocation | valueCodeableConcept | The patient location. See Patient Location |
communication | valueCodeableConcept | The language in which the patient communicate. [FR | EN] |
origin | valueCodeableConcept | The origin of the request. See Patient Origin |
firstName | valueString | The patient’s firstname. |
lastName | valueString | The patient’s lastname. |
gender | valueString | The patient’s gender. [male | female | other | unknown] |
birthDate | valueDate | The patient’s birthdate. Format : YYY-MM-DD |
Patient Origin
The patient’s origin property will impact how Empego treats the Task
by adding additional questions for the patient and context for the employee.
Value | Usage |
INTERNET | Use this value when the Task represents a request for a consultation and the patient is outside the pharmacy. |
APPOINTMENT | Use this value when the Task represents a request for an appointment with the pharmacy. |
{
"resourceType": "Task",
"identifier": [
{
"type": {
"text": "questionnaireVersionSlug"
},
"value": "questionnaireVersionSlug_value"
}
],
"status": "draft",
"code": {
"text": "Empego consultation",
"coding": [
{
"system": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=409063005&edition=MAIN&release=&languages=en",
"code": "11429006 |Consultation",
"display": "consultation"
}
]
},
"intent": "plan",
"priority": "stat",
"input": [
{
"type": {
"text": "phoneNumber"
},
"valueString": "1234567897"
},
{
"type": {
"text": "email"
},
"valueString": "email_value"
},
{
"type": {
"text": "patientLocation"
},
"valueCodeableConcept": {
"text": "INTERNET"
}
},
{
"type": {
"text": "communication"
},
"valueCodeableConcept": {
"coding": [
{
"code": "FR"
}
]
}
},
{
"type": {
"text": "origin"
},
"valueCodeableConcept": {
"text": "INTERNET"
}
},
{
"type": {
"text": "firstName"
},
"valueString": "firstName_value"
},
{
"type": {
"text": "lastName"
},
"valueString": "lastName_value"
},
{
"type": {
"text": "gender"
},
"valueString": "male"
},
{
"type": {
"text": "birthDate"
},
"valueDate": "1970-01-01"
}
]
}