Skip to content

Commit

Permalink
quick minor clean to api documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Sep 8, 2021
1 parent d1f1b46 commit 9c12dec
Showing 1 changed file with 0 additions and 87 deletions.
87 changes: 0 additions & 87 deletions API_README.md
Expand Up @@ -337,93 +337,6 @@ curl -X GET 'https://localhost:9300/apis/default/api/patient/1/medical_problem'
-H 'Authorization: Bearer eyJ0b2tlbiI6IjAwNmZ4TWpsNWhsZmNPelZicXBEdEZVUlNPQUY5KzdzR1Jjejc4WGZyeGFjUjY2QlhaaEs4eThkU3cxbTd5VXFBeTVyeEZpck9mVzBQNWc5dUlidERLZ0trUElCME5wRDVtTVk5bE9WaE5DTHF5RnRnT0Q0OHVuaHRvbXZ6OTEyNmZGUmVPUllSYVJORGoyZTkzTDA5OWZSb0ZRVGViTUtWUFd4ZW5cL1piSzhIWFpJZUxsV3VNcUdjQXR5dmlLQXRXNDAiLCJzaXRlX2lkIjoiZGVmYXVsdCIsImFwaSI6Im9lbXIifQ=='
```

#### POST /api/patient/:pid/insurance/:type

Request:

```sh
curl -X POST 'http://localhost:8300/apis/default/api/patient/10/insurance/primary' -d \
'{
"provider": "33",
"plan_name": "Some Plan",
"policy_number": "12345",
"group_number": "252412",
"subscriber_lname": "Tester",
"subscriber_mname": "Xi",
"subscriber_fname": "Foo",
"subscriber_relationship": "other",
"subscriber_ss": "234231234",
"subscriber_DOB": "2018-10-03",
"subscriber_street": "183 Cool St",
"subscriber_postal_code": "23418",
"subscriber_city": "Cooltown",
"subscriber_state": "AZ",
"subscriber_country": "USA",
"subscriber_phone": "234-598-2123",
"subscriber_employer": "Some Employer",
"subscriber_employer_street": "123 Heather Lane",
"subscriber_employer_postal_code": "23415",
"subscriber_employer_state": "AZ",
"subscriber_employer_country": "USA",
"subscriber_employer_city": "Cooltown",
"copay": "35",
"date": "2018-10-15",
"subscriber_sex": "Female",
"accept_assignment": "TRUE",
"policy_type": "a"
}'
```

Notes:

- `provider` is the insurance company id
- `state` can be found by querying `resource=/api/list/state`
- `country` can be found by querying `resource=/api/list/country`

#### PUT /api/patient/:pid/insurance/:type

Request:

```sh
curl -X PUT 'http://localhost:8300/apis/default/api/patient/10/insurance/primary' -d \
'{
"provider": "33",
"plan_name": "Some Plan",
"policy_number": "12345",
"group_number": "252412",
"subscriber_lname": "Tester",
"subscriber_mname": "Xi",
"subscriber_fname": "Foo",
"subscriber_relationship": "other",
"subscriber_ss": "234231234",
"subscriber_DOB": "2018-10-03",
"subscriber_street": "183 Cool St",
"subscriber_postal_code": "23418",
"subscriber_city": "Cooltown",
"subscriber_state": "AZ",
"subscriber_country": "USA",
"subscriber_phone": "234-598-2123",
"subscriber_employer": "Some Employer",
"subscriber_employer_street": "123 Heather Lane",
"subscriber_employer_postal_code": "23415",
"subscriber_employer_state": "AZ",
"subscriber_employer_country": "USA",
"subscriber_employer_city": "Cooltown",
"copay": "35",
"date": "2018-10-15",
"subscriber_sex": "Female",
"accept_assignment": "TRUE",
"policy_type": "a"
}'
```

Notes:

- `provider` is the insurance company id
- `state` can be found by querying `resource=/api/list/state`
- `country` can be found by querying `resource=/api/list/country`


## Patient Portal API Documentation

The Patient Portal API is documented via Swagger. Can see this documentation (and can test it) by going to the `swagger` directory in your OpenEMR installation. The Patient Portal API is documented there in the `standard-patient` section. Can also see (and test) this in the online demos at https://www.open-emr.org/wiki/index.php/Development_Demo#Daily_Build_Development_Demos (clicking on the `API (Swagger) User Interface` link for the demo will take you there).
Expand Down

0 comments on commit 9c12dec

Please sign in to comment.