Skip to content

Two responses shown in Health Tool documentation is wrong #10192

@nimesh-chandula

Description

@nimesh-chandula

Description

In the Ballerina Health Tool documentation, in CDS template generation section, two of the given responses are wrong. They are duplicated from the previous section FHIR template generation.

Document Link: https://ballerina.io/learn/health-tool/#cds-template-generation

Following are the wrong responses shown in the document under CDS template generation section. They are duplicated from the FHIR template generation section of the document, which is just above this section.

  1. Response shown after "3. Run the service."
$ bal run
Compiling source
        healthcare_samples/health.fhir.r4.uscore501.practitioner:1.0.0

Running executable
  1. Response shown after "You can view the response shown below." (The last response on the document)
{
  "resourceType": "Practitioner",
  "identifier": [
    {
      "system": "http://hl7.org/fhir/sid/us-npi",
      "use": "official",
      "value": "1234567890"
    }
  ],
  "meta": {
    "lastUpdated": "2021-08-24T10:10:10Z",
    "profile": [
      "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"
    ]
  },
  "name": [
    {
      "given": ["John", "Jacob"],
      "prefix": ["Dr."],
      "use": "official",
      "family": "Smith"
    }
  ],
  "id": "1"
}

Following are the responses I got for those two parts after actually running the code and api call.
1.

$ bal run
Compiling source
         wso2/cds_service:1.0.0

Running executable
{
    "cards": [
        {
            "summary": "Prior authorization",
            "detail": "Obtain prior authorization to avoid claim denials and patient financial liability. Contact: For questions, reach out to the insurance provider or billing department.",
            "indicator": "critical",
            "source": {
                "label": "Static CDS Service Example",
                "url": "https://example.com",
                "icon": "https://example.com/img/icon-100px.png"
            },
            "suggestions": [
                {
                    "label": "Kindly get pri-authorization"
                }
            ],
            "selectionBehavior": "at-most-one",
            "links": [
                {
                    "label": "Prior-auth",
                    "url": "https://www.acmehealth.com/policies/lab-coverage",
                    "type": "absolute"
                }
            ]
        },
        {
            "summary": "Alternative centers",
            "detail": "Discuss alternative imaging centers with patients to enhance access and affordability. For assistance, reach out to the facility's scheduling department or insurance provider.",
            "indicator": "info",
            "source": {
                "label": "Static CDS Service Example",
                "url": "https://example.com",
                "icon": "https://example.com/img/icon-100px.png"
            },
            "suggestions": [
                {
                    "label": "The selected imaging center is far away from your location. Please select nearby one. Suggested: Asiri labs : Col - 3"
                }
            ],
            "selectionBehavior": "any"
        }
    ],
    "systemActions": []
}

Steps to Reproduce

  1. Go to CDS template generation section of Ballerina health tool documentation.
  2. Follow along the CDS template generation example to get the correct outputs.

Version

Latest Version

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type/BugBugs that need to be fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions