Get ENT Treatment
Returns json data about a single ENT treatment resource.
-
URL
/tscharts/v1/enttreatment/id
-
Method:
GET
-
URL Params
None
-
Data Params
None
-
Success Response:
- Code: 200
Content:
Response is a JSON object with the following fields:
"id" : id,
"clinic" : id,
"patient" : id,
"time" : UTC date time string,
"earCleanedSide" : "both" | "left" | "right" | "none",
"earCleanedComment" : text
"audiogramSide" : "both" | "left" | "right" | "none",
"audiogramComment" : text,
"audiogramRightAway" : true | false
"audiogramRightAwayComment" : text,
"tympanogramSide" : "both" | "left" | "right" | "none",
"tympanogramComment" : text,
"tympanogramRightAway" : true | false,
"tympanogramRightAwayComment" : text,
"mastoidDebridedSide" : "both" | "left" | "right" | "none",
"mastoidDebridedComment" : text,
"mastoidDebridedHearingAidEval" : true | false,
"mastoidDebridedHearingAidEvalComment" : text,
"antibioticDrops" : true | false
"antibioticDropsComment" : text,
"antibioticOrally" : true | false
"antibioticOrallyComment" : text,
"antibioticAcuteInfection" : true | false,
"antibioticAcuteInfectionComment" : text,
"antibioticAfterWaterExposureInfectionPrevention" : true | false,
"antibioticAfterWaterExposureInfectionPreventionComment" : text,
"boricAcidToday" : true | false
"boricAcidTodayComment" : text,
"boricAcidForHomeUse" : true | false,
"boricAcidForHomeUseComment" : text,
"boricAcidSide" : "both" | "left" | "right" | "none",
"boricAcidSideComment" : text,
"foreignBodyRemoved" :
"foreignBodyRemovedComment" : text,
"return3Months" : true | false
"return6Months" : true | false,
"returnPrn" : true | false
"returnComment" : text,
"referredPvtENTEnsenada" : true | false
"referredPvtENTEnsenadaComment" : text,
"referredChildrensHospitalTJ" : true | false,
"referredChildrensHospitalTJComment" : text,
"tubesTomorrow" : "both" | "left" | "right" | "none",
"tubesTomorrowComment" : text,
"tPlastyTomorrow" : "both" | "left" | "right" | "none",
"tPlastyTomorrowComment" : text,
"euaTomorrow" : "both" | "left" | "right" | "none",
"euaTomorrowComment" : text,
"fbRemovalTomorrow" : "both" | "left" | "right" | "none",
"fbRemovalTomorrowComment" : text,
"middleEarExploreMyringotomyTomorrow" : "both" | "left" | "right" | "none",
"middleEarExploreMyringotomyTomorrowComment" : text,
"cerumenTomorrow" : "both" | "left" | "right" | "none",
"cerumenTomorrowComment" : text,
"granulomaTomorrow" : "both" | "left" | "right" | "none",
"granulomaTomorrowComment" : text,
"septorhinoplastyTomorrow" : true | false
"septorhinoplastyTomorrowComment" : text,
"scarRevisionCleftLipTomorrow" : true | false
"scarRevisionCleftLipTomorrowComment" : text,
"frenulectomyTomorrow" : true | false,
"frenulectomyTomorrowComment" : text,
"tubesFuture" : "both" | "left" | "right" | "none",
"tubesFutureComment" : text,
"tPlastyFuture" : "both" | "left" | "right" | "none",
"tPlastyFutureComment" : text,
"euaFuture" : "both" | "left" | "right" | "none",
"euaFutureComment" : text,
"fbRemovalFuture" : "both" | "left" | "right" | "none",
"fbRemovalComment" : text,
"middleEarExploreMyringotomyFuture" : "both" | "left" | "right" | "none",
"middleEarExploreMyringotomyFutureComment" : text,
"cerumenFuture" : "both" | "left" | "right" | "none",
"cerumenFutureComment" : text,
"granulomaFuture" : "both" | "left" | "right" | "none",
"granulomaFutureComment" : text,
"septorhinoplastyFuture" : true | false
"septorhinoplastyFutureComment" : text,
"scarRevisionCleftLipFuture" : true | false
"scarRevisionCleftLipFutureComment" : text,
"frenulectomyFuture" : true | false
"frenulectomyFutureComment" : text,
"comment" : text - Code: 200
-
Error Response:
- Code: 404 NOT FOUND
-
Example:
GET /tscharts/v1/enttreatment/12/ HTTP/1.1
Host: localhost
Content-Length: 2
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/4.2.0-27-generic
Content-Type: application/json
Authorization: Token 53f29e4dfc917c28a0e71f26525307250f1f8101
{}HTTP/1.1 200 OK
Date: Mon, 11 Dec 2017 01:02:24 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: Accept
X-Frame-Options: SAMEORIGIN
Allow: GET, POST, PUT, DELETE, HEAD, OPTIONS
Transfer-Encoding: chunked
Content-Type: application/json
2c5
{"id":27,"clinic":9,"patient":6,"time":"2017-12-11T01:02:24","username":"xxyyzz", "earCleanedSide" : "left", "earCleanedComment" : "", "audiogramSide" : "left", "audiogramComment" : "", "audiogramRightAway" : false, "audiogramRightAwayComment" : "", "tympanogramSide" : "left", "tympanogramComment" : "", "tympanogramRightAway" : true, "tympanogramRightAwayComment" : "", "mastoidDebridedSide" : "left", "mastoidDebridedComment" : "", "mastoidDebridedHearingAidEval" : true, "mastoidDebridedHearingAidEvalComment" : "", "antibioticDrops" : false, "antibioticDropsComment" : "", "antibioticOrally" : false, "antibioticOrallyComment" : "", "antibioticAcuteInfection" : true, "antibioticAcuteInfectionComment" : "", "antibioticAfterWaterExposureInfectionPrevention" : true, "antibioticAfterWaterExposureInfectionPreventionComment" : "", "boricAcidToday" : false, "boricAcidTodayComment" : "", "boricAcidForHomeUse" : true, "boricAcidForHomeUseComment" : "", "boricAcidSide" : "left", "boricAcidSideComment" : "", "foreignBodyRemoved" : "right", "foreignBodyRemovedComment" : "", "return3Months" : false, "return6Months" : true, "returnPrn" : false, "returnComment" : "", "referredPvtENTEnsenada" : false, "referredPvtENTEnsenadaComment" : "", "referredChildrensHospitalTJ" : true, "referredChildrensHospitalTJComment" : "", "tubesTomorrow" : "left", "tubesTomorrowComment" : "", "tPlastyTomorrow" : "left", "tPlastyTomorrowComment" : "", "euaTomorrow" : "left", "euaTomorrowComment" : "", "fbRemovalTomorrow" : "left", "fbRemovalTomorrowComment" : "", "middleEarExploreMyringotomyTomorrow" : "left", "middleEarExploreMyringotomyTomorrowComment" : "", "cerumenTomorrow" : "left", "cerumenTomorrowComment" : "", "granulomaTomorrow" : "left", "granulomaTomorrowComment" : "", "septorhinoplastyTomorrow" : false, "septorhinoplastyTomorrowComment" : "", "scarRevisionCleftLipTomorrow" : false, "scarRevisionCleftLipTomorrowComment" : "", "frenulectomyTomorrow" : true, "frenulectomyTomorrowComment" : "", "tubesFuture" : "right", "tubesFutureComment" : "", "tPlastyFuture" : "right", "tPlastyFutureComment" : "", "euaFuture" : "right", "euaFutureComment" : "", "fbRemovalFuture" : "right", "fbRemovalComment" : "", "middleEarExploreMyringotomyFuture" : "right", "middleEarExploreMyringotomyFutureComment" : "", "cerumenFuture" : "right", "cerumenFutureComment" : "", "granulomaFuture" : "right", "granulomaFutureComment" : "", "septorhinoplastyFuture" : false, "septorhinoplastyFutureComment" : "", "scarRevisionCleftLipFuture" : false, "scarRevisionCleftLipFutureComment" : "", "frenulectomyFuture" : false, "frenulectomyFutureComment" : "", "comment" : ""}
Returns data for all matching ENT treatment resources. A given patient may have multiple treatments depending on his or her condition for a given clinic.
-
URL
/tscharts/v1/enttreatment/
-
Method:
GET
-
URL Params
Required:
One or more of the following are used to filter the results.
"clinic" : id,
"patient" : id,
"time" : UTC date time string,
"earCleanedSide" : "both" | "left" | "right" | "none",
"audiogramSide" : "both" | "left" | "right" | "none",
"audiogramRightAway" : true | false
"tympanogramSide" : "both" | "left" | "right" | "none",
"tympanogramRightAway" : true | false,
"mastoidDebridedSide" : "both" | "left" | "right" | "none",
"mastoidDebridedHearingAidEval" : true | false,
"antibioticDrops" : true | false
"antibioticOrally" : true | false
"antibioticAcuteInfection" : true | false,
"antibioticAfterWaterExposureInfectionPrevention" : true | false,
"boricAcidToday" : true | false
"boricAcidForHomeUse" : true | false,
"boricAcidSide" : "both" | "left" | "right" | "none",
"foreignBodyRemoved" :
"return3Months" : true | false
"return6Months" : true | false,
"returnPrn" : true | false
"referredPvtENTEnsenada" : true | false
"referredChildrensHospitalTJ" : true | false,
"tubesTomorrow" : "both" | "left" | "right" | "none",
"tPlastyTomorrow" : "both" | "left" | "right" | "none",
"euaTomorrow" : "both" | "left" | "right" | "none",
"fbRemovalTomorrow" : "both" | "left" | "right" | "none",
"middleEarExploreMyringotomyTomorrow" : "both" | "left" | "right" | "none",
"cerumenTomorrow" : "both" | "left" | "right" | "none",
"granulomaTomorrow" : "both" | "left" | "right" | "none",
"septorhinoplastyTomorrow" : true | false
"scarRevisionCleftLipTomorrow" : true | false
"frenulectomyTomorrow" : true | false,
"tubesFuture" : "both" | "left" | "right" | "none",
"tPlastyFuture" : "both" | "left" | "right" | "none",
"euaFuture" : "both" | "left" | "right" | "none",
"fbRemovalFuture" : "both" | "left" | "right" | "none",
"middleEarExploreMyringotomyFuture" : "both" | "left" | "right" | "none",
"cerumenFuture" : "both" | "left" | "right" | "none",
"granulomaFuture" : "both" | "left" | "right" | "none",
"septorhinoplastyFuture" : true | false
"scarRevisionCleftLipFuture" : true | false
"frenulectomyFuture" : true | false
-
Data Params
None
-
Success Response:
-
Code: 200
Content:[{"id":27,"clinic":9,"patient":6,"time":"2017-12-11T01:02:24","username":"xxyyzz", "earCleanedSide" : "left", "earCleanedComment" : "", "audiogramSide" : "left", "audiogramComment" : "", "audiogramRightAway" : false, "audiogramRightAwayComment" : "", "tympanogramSide" : "left", "tympanogramComment" : "", "tympanogramRightAway" : true, "tympanogramRightAwayComment" : "", "mastoidDebridedSide" : "left", "mastoidDebridedComment" : "", "mastoidDebridedHearingAidEval" : true, "mastoidDebridedHearingAidEvalComment" : "", "antibioticDrops" : false, "antibioticDropsComment" : "", "antibioticOrally" : false, "antibioticOrallyComment" : "", "antibioticAcuteInfection" : true, "antibioticAcuteInfectionComment" : "", "antibioticAfterWaterExposureInfectionPrevention" : true, "antibioticAfterWaterExposureInfectionPreventionComment" : "", "boricAcidToday" : false, "boricAcidTodayComment" : "", "boricAcidForHomeUse" : true, "boricAcidForHomeUseComment" : "", "boricAcidSide" : "left", "boricAcidSideComment" : "", "foreignBodyRemoved" : "right", "foreignBodyRemovedComment" : "", "return3Months" : false, "return6Months" : true, "returnPrn" : false, "returnComment" : "", "referredPvtENTEnsenada" : false, "referredPvtENTEnsenadaComment" : "", "referredChildrensHospitalTJ" : true, "referredChildrensHospitalTJComment" : "", "tubesTomorrow" : "left", "tubesTomorrowComment" : "", "tPlastyTomorrow" : "left", "tPlastyTomorrowComment" : "", "euaTomorrow" : "left", "euaTomorrowComment" : "", "fbRemovalTomorrow" : "left", "fbRemovalTomorrowComment" : "", "middleEarExploreMyringotomyTomorrow" : "left", "middleEarExploreMyringotomyTomorrowComment" : "", "cerumenTomorrow" : "left", "cerumenTomorrowComment" : "", "granulomaTomorrow" : "left", "granulomaTomorrowComment" : "", "septorhinoplastyTomorrow" : false, "septorhinoplastyTomorrowComment" : "", "scarRevisionCleftLipTomorrow" : false, "scarRevisionCleftLipTomorrowComment" : "", "frenulectomyTomorrow" : true, "frenulectomyTomorrowComment" : "", "tubesFuture" : "right", "tubesFutureComment" : "", "tPlastyFuture" : "right", "tPlastyFutureComment" : "", "euaFuture" : "right", "euaFutureComment" : "", "fbRemovalFuture" : "right", "fbRemovalComment" : "", "middleEarExploreMyringotomyFuture" : "right", "middleEarExploreMyringotomyFutureComment" : "", "cerumenFuture" : "right", "cerumenFutureComment" : "", "granulomaFuture" : "right", "granulomaFutureComment" : "", "septorhinoplastyFuture" : false, "septorhinoplastyFutureComment" : "", "scarRevisionCleftLipFuture" : false, "scarRevisionCleftLipFutureComment" : "", "frenulectomyFuture" : false, "frenulectomyFutureComment" : "", "comment" : ""}, ...]
-
-
Error Response:
- Code: 400 BAD REQUEST
- Code: 403 NOT FOUND
- Code: 500 SERVER ERROR
- Code: 400 BAD REQUEST
-
Example:
GET /tscharts/v1/enttreatment/?clinic=3 HTTP/1.1
Host: localhost
Content-Length: 2
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/4.2.0-27-generic
Content-Type: application/json
Authorization: Token 53f29e4dfc917c28a0e71f26525307250f1f8101
{}HTTP/1.1 200 OK
Date: Mon, 11 Dec 2017 01:02:24 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: Accept
X-Frame-Options: SAMEORIGIN
Allow: GET, POST, PUT, DELETE, HEAD, OPTIONS
Transfer-Encoding: chunked
Content-Type: application/json
859
[{"id":27,"clinic":9,"patient":6,"time":"2017-12-11T01:02:24","username":"xxyyzz", "earCleanedSide" : "left", "earCleanedComment" : "", "audiogramSide" : "left", "audiogramComment" : "", "audiogramRightAway" : false, "audiogramRightAwayComment" : "", "tympanogramSide" : "left", "tympanogramComment" : "", "tympanogramRightAway" : true, "tympanogramRightAwayComment" : "", "mastoidDebridedSide" : "left", "mastoidDebridedComment" : "", "mastoidDebridedHearingAidEval" : true, "mastoidDebridedHearingAidEvalComment" : "", "antibioticDrops" : false, "antibioticDropsComment" : "", "antibioticOrally" : false, "antibioticOrallyComment" : "", "antibioticAcuteInfection" : true, "antibioticAcuteInfectionComment" : "", "antibioticAfterWaterExposureInfectionPrevention" : true, "antibioticAfterWaterExposureInfectionPreventionComment" : "", "boricAcidToday" : false, "boricAcidTodayComment" : "", "boricAcidForHomeUse" : true, "boricAcidForHomeUseComment" : "", "boricAcidSide" : "left", "boricAcidSideComment" : "", "foreignBodyRemoved" : "right", "foreignBodyRemovedComment" : "", "return3Months" : false, "return6Months" : true, "returnPrn" : false, "returnComment" : "", "referredPvtENTEnsenada" : false, "referredPvtENTEnsenadaComment" : "", "referredChildrensHospitalTJ" : true, "referredChildrensHospitalTJComment" : "", "tubesTomorrow" : "left", "tubesTomorrowComment" : "", "tPlastyTomorrow" : "left", "tPlastyTomorrowComment" : "", "euaTomorrow" : "left", "euaTomorrowComment" : "", "fbRemovalTomorrow" : "left", "fbRemovalTomorrowComment" : "", "middleEarExploreMyringotomyTomorrow" : "left", "middleEarExploreMyringotomyTomorrowComment" : "", "cerumenTomorrow" : "left", "cerumenTomorrowComment" : "", "granulomaTomorrow" : "left", "granulomaTomorrowComment" : "", "septorhinoplastyTomorrow" : false, "septorhinoplastyTomorrowComment" : "", "scarRevisionCleftLipTomorrow" : false, "scarRevisionCleftLipTomorrowComment" : "", "frenulectomyTomorrow" : true, "frenulectomyTomorrowComment" : "", "tubesFuture" : "right", "tubesFutureComment" : "", "tPlastyFuture" : "right", "tPlastyFutureComment" : "", "euaFuture" : "right", "euaFutureComment" : "", "fbRemovalFuture" : "right", "fbRemovalComment" : "", "middleEarExploreMyringotomyFuture" : "right", "middleEarExploreMyringotomyFutureComment" : "", "cerumenFuture" : "right", "cerumenFutureComment" : "", "granulomaFuture" : "right", "granulomaFutureComment" : "", "septorhinoplastyFuture" : false, "septorhinoplastyFutureComment" : "", "scarRevisionCleftLipFuture" : false, "scarRevisionCleftLipFutureComment" : "", "frenulectomyFuture" : false, "frenulectomyFutureComment" : "", "comment" : ""}, ...]
0
Create an ENT treatment resource for a patient at a specific clinic.
-
URL
/tscharts/v1/enttreatment/
-
Method:
POST
-
URL Params
None
-
Data Params
Required:
"clinic" : clinic id,
"patient" : patient id,
"earCleanedSide" : "both" | "left" | "right" | "none",
"earCleanedComment" : text
"audiogramSide" : "both" | "left" | "right" | "none",
"audiogramComment" : text,
"audiogramRightAway" : true | false
"audiogramRightAwayComment" : text,
"tympanogramSide" : "both" | "left" | "right" | "none",
"tympanogramComment" : text,
"tympanogramRightAway" : true | false,
"tympanogramRightAwayComment" : text,
"mastoidDebridedSide" : "both" | "left" | "right" | "none",
"mastoidDebridedComment" : text,
"mastoidDebridedHearingAidEval" : true | false,
"mastoidDebridedHearingAidEvalComment" : text,
"antibioticDrops" : true | false
"antibioticDropsComment" : text,
"antibioticOrally" : true | false
"antibioticOrallyComment" : text,
"antibioticAcuteInfection" : true | false,
"antibioticAcuteInfectionComment" : text,
"antibioticAfterWaterExposureInfectionPrevention" : true | false,
"antibioticAfterWaterExposureInfectionPreventionComment" : text,
"boricAcidToday" : true | false
"boricAcidTodayComment" : text,
"boricAcidForHomeUse" : true | false,
"boricAcidForHomeUseComment" : text,
"boricAcidSide" : "both" | "left" | "right" | "none",
"boricAcidSideComment" : text,
"foreignBodyRemoved" :
"foreignBodyRemovedComment" : text,
"return3Months" : true | false
"return6Months" : true | false,
"returnPrn" : true | false
"returnComment" : text,
"referredPvtENTEnsenada" : true | false
"referredPvtENTEnsenadaComment" : text,
"referredChildrensHospitalTJ" : true | false,
"referredChildrensHospitalTJComment" : text,
"tubesTomorrow" : "both" | "left" | "right" | "none",
"tubesTomorrowComment" : text,
"tPlastyTomorrow" : "both" | "left" | "right" | "none",
"tPlastyTomorrowComment" : text,
"euaTomorrow" : "both" | "left" | "right" | "none",
"euaTomorrowComment" : text,
"fbRemovalTomorrow" : "both" | "left" | "right" | "none",
"fbRemovalTomorrowComment" : text,
"middleEarExploreMyringotomyTomorrow" : "both" | "left" | "right" | "none",
"middleEarExploreMyringotomyTomorrowComment" : text,
"cerumenTomorrow" : "both" | "left" | "right" | "none",
"cerumenTomorrowComment" : text,
"granulomaTomorrow" : "both" | "left" | "right" | "none",
"granulomaTomorrowComment" : text,
"septorhinoplastyTomorrow" : true | false
"septorhinoplastyTomorrowComment" : text,
"scarRevisionCleftLipTomorrow" : true | false
"scarRevisionCleftLipTomorrowComment" : text,
"frenulectomyTomorrow" : true | false,
"frenulectomyTomorrowComment" : text,
"tubesFuture" : "both" | "left" | "right" | "none",
"tubesFutureComment" : text,
"tPlastyFuture" : "both" | "left" | "right" | "none",
"tPlastyFutureComment" : text,
"euaFuture" : "both" | "left" | "right" | "none",
"euaFutureComment" : text,
"fbRemovalFuture" : "both" | "left" | "right" | "none",
"fbRemovalComment" : text,
"middleEarExploreMyringotomyFuture" : "both" | "left" | "right" | "none",
"middleEarExploreMyringotomyFutureComment" : text,
"cerumenFuture" : "both" | "left" | "right" | "none",
"cerumenFutureComment" : text,
"granulomaFuture" : "both" | "left" | "right" | "none",
"granulomaFutureComment" : text,
"septorhinoplastyFuture" : true | false
"septorhinoplastyFutureComment" : text,
"scarRevisionCleftLipFuture" : true | false
"scarRevisionCleftLipFutureComment" : text,
"frenulectomyFuture" : true | false
"frenulectomyFutureComment" : text,
"comment" : textOptional:
None
-
Success Response:
- Code: 200
Content:{ "id" : id }
- Code: 200
-
Error Response:
- Code: 400 BAD REQUEST
- Code: 404 NOT FOUND
- Code: 500 SERVER ERROR
- Code: 400 BAD REQUEST
-
Example:
POST /tscharts/v1/enttreatment/ HTTP/1.1
Host: localhost
Content-Length: 738
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/4.2.0-27-generic
Content-Type: application/json
Authorization: Token 53f29e4dfc917c28a0e71f26525307250f1f8101
{"clinic":9,"patient":6,"username":"xxyyzz", "earCleanedSide" : "left", "earCleanedComment" : "", "audiogramSide" : "left", "audiogramComment" : "", "audiogramRightAway" : false, "audiogramRightAwayComment" : "", "tympanogramSide" : "left", "tympanogramComment" : "", "tympanogramRightAway" : true, "tympanogramRightAwayComment" : "", "mastoidDebridedSide" : "left", "mastoidDebridedComment" : "", "mastoidDebridedHearingAidEval" : true, "mastoidDebridedHearingAidEvalComment" : "", "antibioticDrops" : false, "antibioticDropsComment" : "", "antibioticOrally" : false, "antibioticOrallyComment" : "", "antibioticAcuteInfection" : true, "antibioticAcuteInfectionComment" : "", "antibioticAfterWaterExposureInfectionPrevention" : true, "antibioticAfterWaterExposureInfectionPreventionComment" : "", "boricAcidToday" : false, "boricAcidTodayComment" : "", "boricAcidForHomeUse" : true, "boricAcidForHomeUseComment" : "", "boricAcidSide" : "left", "boricAcidSideComment" : "", "foreignBodyRemoved" : "right", "foreignBodyRemovedComment" : "", "return3Months" : false, "return6Months" : true, "returnPrn" : false, "returnComment" : "", "referredPvtENTEnsenada" : false, "referredPvtENTEnsenadaComment" : "", "referredChildrensHospitalTJ" : true, "referredChildrensHospitalTJComment" : "", "tubesTomorrow" : "left", "tubesTomorrowComment" : "", "tPlastyTomorrow" : "left", "tPlastyTomorrowComment" : "", "euaTomorrow" : "left", "euaTomorrowComment" : "", "fbRemovalTomorrow" : "left", "fbRemovalTomorrowComment" : "", "middleEarExploreMyringotomyTomorrow" : "left", "middleEarExploreMyringotomyTomorrowComment" : "", "cerumenTomorrow" : "left", "cerumenTomorrowComment" : "", "granulomaTomorrow" : "left", "granulomaTomorrowComment" : "", "septorhinoplastyTomorrow" : false, "septorhinoplastyTomorrowComment" : "", "scarRevisionCleftLipTomorrow" : false, "scarRevisionCleftLipTomorrowComment" : "", "frenulectomyTomorrow" : true, "frenulectomyTomorrowComment" : "", "tubesFuture" : "right", "tubesFutureComment" : "", "tPlastyFuture" : "right", "tPlastyFutureComment" : "", "euaFuture" : "right", "euaFutureComment" : "", "fbRemovalFuture" : "right", "fbRemovalComment" : "", "middleEarExploreMyringotomyFuture" : "right", "middleEarExploreMyringotomyFutureComment" : "", "cerumenFuture" : "right", "cerumenFutureComment" : "", "granulomaFuture" : "right", "granulomaFutureComment" : "", "septorhinoplastyFuture" : false, "septorhinoplastyFutureComment" : "", "scarRevisionCleftLipFuture" : false, "scarRevisionCleftLipFutureComment" : "", "frenulectomyFuture" : false, "frenulectomyFutureComment" : "", "comment" : ""} HTTP/1.1 200 OK
Date: Mon, 11 Dec 2017 01:02:23 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: Accept
X-Frame-Options: SAMEORIGIN
Allow: GET, POST, PUT, DELETE, HEAD, OPTIONS
Transfer-Encoding: chunked
Content-Type: application/json
8
{"id":2}
0
Update an ENT treatment instance
-
URL
/tscharts/v1/enttreatment/id
-
Method:
PUT
-
URL Params
None
-
Data Params
Required:
One or more of the following field/value pairs
"clinic" : clinic id,
"patient" : patient id,
"earCleanedSide" : "both" | "left" | "right" | "none",
"earCleanedComment" : text
"audiogramSide" : "both" | "left" | "right" | "none",
"audiogramComment" : text,
"audiogramRightAway" : true | false
"audiogramRightAwayComment" : text,
"tympanogramSide" : "both" | "left" | "right" | "none",
"tympanogramComment" : text,
"tympanogramRightAway" : true | false,
"tympanogramRightAwayComment" : text,
"mastoidDebridedSide" : "both" | "left" | "right" | "none",
"mastoidDebridedComment" : text,
"mastoidDebridedHearingAidEval" : true | false,
"mastoidDebridedHearingAidEvalComment" : text,
"antibioticDrops" : true | false
"antibioticDropsComment" : text,
"antibioticOrally" : true | false
"antibioticOrallyComment" : text,
"antibioticAcuteInfection" : true | false,
"antibioticAcuteInfectionComment" : text,
"antibioticAfterWaterExposureInfectionPrevention" : true | false,
"antibioticAfterWaterExposureInfectionPreventionComment" : text,
"boricAcidToday" : true | false
"boricAcidTodayComment" : text,
"boricAcidForHomeUse" : true | false,
"boricAcidForHomeUseComment" : text,
"boricAcidSide" : "both" | "left" | "right" | "none",
"boricAcidSideComment" : text,
"foreignBodyRemoved" :
"foreignBodyRemovedComment" : text,
"return3Months" : true | false
"return6Months" : true | false,
"returnPrn" : true | false
"returnComment" : text,
"referredPvtENTEnsenada" : true | false
"referredPvtENTEnsenadaComment" : text,
"referredChildrensHospitalTJ" : true | false,
"referredChildrensHospitalTJComment" : text,
"tubesTomorrow" : "both" | "left" | "right" | "none",
"tubesTomorrowComment" : text,
"tPlastyTomorrow" : "both" | "left" | "right" | "none",
"tPlastyTomorrowComment" : text,
"euaTomorrow" : "both" | "left" | "right" | "none",
"euaTomorrowComment" : text,
"fbRemovalTomorrow" : "both" | "left" | "right" | "none",
"fbRemovalTomorrowComment" : text,
"middleEarExploreMyringotomyTomorrow" : "both" | "left" | "right" | "none",
"middleEarExploreMyringotomyTomorrowComment" : text,
"cerumenTomorrow" : "both" | "left" | "right" | "none",
"cerumenTomorrowComment" : text,
"granulomaTomorrow" : "both" | "left" | "right" | "none",
"granulomaTomorrowComment" : text,
"septorhinoplastyTomorrow" : true | false
"septorhinoplastyTomorrowComment" : text,
"scarRevisionCleftLipTomorrow" : true | false
"scarRevisionCleftLipTomorrowComment" : text,
"frenulectomyTomorrow" : true | false,
"frenulectomyTomorrowComment" : text,
"tubesFuture" : "both" | "left" | "right" | "none",
"tubesFutureComment" : text,
"tPlastyFuture" : "both" | "left" | "right" | "none",
"tPlastyFutureComment" : text,
"euaFuture" : "both" | "left" | "right" | "none",
"euaFutureComment" : text,
"fbRemovalFuture" : "both" | "left" | "right" | "none",
"fbRemovalComment" : text,
"middleEarExploreMyringotomyFuture" : "both" | "left" | "right" | "none",
"middleEarExploreMyringotomyFutureComment" : text,
"cerumenFuture" : "both" | "left" | "right" | "none",
"cerumenFutureComment" : text,
"granulomaFuture" : "both" | "left" | "right" | "none",
"granulomaFutureComment" : text,
"septorhinoplastyFuture" : true | false
"septorhinoplastyFutureComment" : text,
"scarRevisionCleftLipFuture" : true | false
"scarRevisionCleftLipFutureComment" : text,
"frenulectomyFuture" : true | false
"frenulectomyFutureComment" : text,
"comment" : text -
Success Response:
- Code: 200
- Code: 200
-
Error Response:
- Code: 400 BAD REQUEST
- Code: 404 NOT FOUND
- Code: 500 SERVER ERROR
- Code: 400 BAD REQUEST
-
Example:
PUT /tscharts/v1/enttreatment/24/ HTTP/1.1
Host: 127.0.0.1:8000
Content-Length: 18
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/4.2.0-27-generic
Content-Type: application/json
Authorization: Token b4e9102f85686fda0239562e4c8f7d3773438dae
{"granulomaFuture": "both"}HTTP/1.0 200 OK
Date: Sun, 23 Apr 2017 01:19:21 GMT
Server: WSGIServer/0.1 Python/2.7.6
Vary: Accept
X-Frame-Options: SAMEORIGIN
Content-Type: application/json
Allow: GET, POST, PUT, DELETE, HEAD, OPTIONS
{}
Delete an ENT treatment resource. Use is not recommended except for unit test applications.
-
URL
/tscharts/v1/enttreatment/id
-
Method:
DELETE
-
URL Params
None
-
Data Params
None
-
Success Response:
- Code: 200
Content: None
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
-
Example:
DELETE /tscharts/v1/enttreatment/140/ HTTP/1.1
Host: 127.0.0.1:8000
Content-Length: 2
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/4.2.0-27-generic
Content-Type: application/json
Authorization: Token 53f29e4dfc917c28a0e71f26525307250f1f8101
{}HTTP/1.0 200 OK
Date: Fri, 21 Apr 2017 05:52:49 GMT
Server: WSGIServer/0.1 Python/2.7.6
Vary: Accept
X-Frame-Options: SAMEORIGIN
Content-Type: application/json
Allow: GET, POST, PUT, DELETE, HEAD, OPTIONS
{}