beckn / DHP-Specs

Decentralized Health Protocol (DHP) Open API Specifications. DHP is an ambitions open source project that aims to define interoperable protocol specifications for creating decentralized network of health and wellness services including tele consultation and various other services.
Other
0 stars 0 forks source link

Add Example JSONs for Secondary Use-cases in DHP Specs #74

Closed AnirudhTiwari closed 2 years ago

AnirudhTiwari commented 2 years ago

Sample example JSONs are to be added for use-cases like:

  1. Ambulance booking
  2. Bed availability
  3. Physiotherapy sessions, etc.
ravi-prakash-v commented 2 years ago

@AnirudhTiwari added JSONs for Ambulance booking in v0.7.2-draft branch.

ravi-prakash-v commented 2 years ago
{
    "context": {
        "domain": "dhp:admission",
        "country": "IND",
        "city": "std:011",
        "action": "on_search",
        "core_version": "0.9.3",
        "bap_id": "example-bap.com",
        "bap_uri": "https://example-bap.com/path/to/api/",
        "message_id": "5ac3dd78-829e-4c7d-9139-a15adbb582cc",
        "timestamp": "2021-03-23T10:00:40.065Z"
    },
    "message": {
        "catalog": {
            "bpp/providers": [
                {
                    "descriptor": {
                        "name": "Apollo Hospitals"
                    },
                    "tags": {
                        "beds_available": "20"
                    }
                }
            ]
        }
    }
}

This is the beds use case. Available beds are simply read-only attributes that can be sent in provider.tags.

ravi-prakash-v commented 2 years ago

Physiotherapy sessions is same category as consultation use cases. Nothing new.

ravi-prakash-v commented 2 years ago

Marking this as closed.