hl7-be / pss

Prescription Search Support
Other
0 stars 0 forks source link

[Example] Step 3 - Send parameters to receive support options (Antimicrobial) #30

Closed NISN-SMALS closed 2 months ago

NISN-SMALS commented 4 months ago

Request: POST /$AntimicroGuidanceRequest (+ QuestionnaireResponse in payload)

OperationDefinition specifications

{
  "resourceType": "OperationDefinition",
  "id": "antimicroguidance-request",
  "url": "https://www.ehealth.fgov.be/standards/fhir/pss/OperationDefinition/AntimicroGuidanceRequest",
  "version": "1.0",
  "name": "AntimicroGuidance",
  "status": "active",
  "kind": "operation",
  "description": "Request for antimicrobial guidance based on patient condition and support parameters",
  "code": "antimicroGuidanceRequest",
  "system": true,
  "type": false,
  "instance": false,
  "parameter": [
    {
      "name": "questionnaireResponse",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The response to the support parameters and patient variables questionnaire",
      "type": "QuestionnaireResponse"
    },
    {
      "name": "return",
      "use": "out",
      "min": 1,
      "max": "1",
      "type": "Bundle",
      "documentation": "The operation returns a Bundle containing a GuidanceResponse and a Parameters resource."
    }
  ]
}

Post body: In this example the following information is provided based on step 2:

{
  "resourceType": "QuestionnaireResponse",
  "status": "completed",
  "item": [
    {
      "linkId": "questionnaire",
      "item": [
        {
          "linkId": "indication",
          "text": "Indication",
          "answer": [
            {
              "valueCoding": {
                "system": "http://snomed.info/sct",
                "code": "921000172108" //Acute keelpijn
              }
            }
          ]
        },
        {
          "linkId": "sp_alertSignals",
          "answer": [
            {
              "valueBoolean": false
            }
          ]
        },
        {
          "linkId": "sp_isSeverelyIll",
          "answer": [
            {
              "valueBoolean": true
            }
          ]
        },
        {
          "linkId": "sp_riskPatientGroup",
          "item": [
            {
              "linkId": "sp_riskPatient",
              "answer": [
                {
                  "valueBoolean": false
                }
              ]
            },
            {
              "linkId": "sp_riskPatient_patientVariables",
              "item": [
                {
                  "linkId": "pv_compromisedImmuneSystem_proposals",
                  "item": [
                    {
                      "linkId": "pv_compromisedImmuneSystem_override",
                      "answer": [
                        {
                          "valueBoolean": true
                        }
                      ]
                    }
                  ]
                },
                {
                  "linkId": "pv_oncologyPatient_proposals",
                  "item": [
                    {
                      "linkId": "pv_oncologyPatient",
                      "answer": [
                        {
                          "valueCoding": {
                            "system": "http://snomed.info/sct",
                            "code": "763597000"
                          }
                        }
                      ]
                    },
                    {
                      "linkId": "pv_oncologyPatient_override",
                      "answer": [
                        {
                          "valueBoolean": false
                        }
                      ]
                    }
                  ]
                },
                {
                  "linkId": "pv_historyAcuteJointRheumatism_proposals",
                  "item": [
                    {
                      "linkId": "pv_historyAcuteJointRheumatism_override",
                      "answer": [
                        {
                          "valueBoolean": false
                        }
                      ]
                    }
                  ]
                },
                {
                  "linkId": "pv_recentProthesticSurgery_proposals",
                  "item": [
                    {
                      "linkId": "pv_recentProthesticSurgery_override",
                      "answer": [
                        {
                          "valueBoolean": false
                        }
                      ]
                    }
                  ]
                },
                {
                  "linkId": "pv_heartValveDisease_proposals",
                  "item": [
                    {
                      "linkId": "pv_heartValveDisease_override",
                      "answer": [
                        {
                          "valueBoolean": false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "linkId": "sp_nonIgEMediatedPeniAllergy",
          "answer": [
            {
              "valueBoolean": false
            }
          ]
        },
        {
          "linkId": "sp_igEMediatedPeniAllergy",
          "answer": [
            {
              "valueBoolean": false
            }
          ]
        }
      ]
    }
  ]
}
costateixeira commented 4 months ago

See response to issue #31 We are not considering custom operations at this time, and these example bundles are not correct.

bdc-ehealth commented 4 months ago

results can be evaluated here: https://build.fhir.org/ig/hl7-be/pss/branches/issue-25/artifacts.html