Skip to main content

Comments for Roll Up Scores for Multiple Physicians or Locations

If multiple physician and/or locations are sent in an API call, the output will be one rollup score per physician/location.

Endpoint

POSThttps://api1.consumerism.pressganey.com/api/bsr/comments

Header Parameters

PropertyTypeDescriptionRequired/Optional
Content-Typeapplication/x-www-form-urlencodedURL Encoded request bodyRequired
Access-TokenStringAccess token received from the platformRequired

POST Request Parameters

Required Fields

PropertyTypeDescriptionRequired/Optional
entityIdStringUnique identifier of a Location. You can get this unique codes from the Mapping file. You can pass multiple location ID as &locationID=123&locationId=234Required

Optional Request Parameters

Following parameters are optional fields you can pass to customize the results. You don't have to pass any of these, and we will use the default/industry standard values here.

PropertyTypeDescriptionDefault Value
pageIntegerThe page to return containing the requested number of testimonials per page1
perPageIntegerThe number of reviews per page20
daysIntegerMaximum age of the reviews in days. For example, days=7 means reviews from the past 1 week365
fromDateStringStart timestamp (use fromDate and toDate together and it has precedence over days). Format - ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss'Z')
toDateStringEnd Timestamp (use fromDate and toDate together and it has precedence over days). Format - ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss'Z')
minSurveyCountIntegerReturns responses only when there are at least as many ratings as specified in minRatingCount.0
minRatingCountIntegerReturns responses only when there are at least as many ratings as specified in minRatingCount.30
minWordCountIntegerReturns only those reviews, which have minimum number of words in it.0- meaning, no restriction on word count
showRatingsBooleanIf you don't need rating, send this parameter as falsetrue
showCommentsDefaultIf you don't need comments, send this parameter as falsetrue
additionalFieldsList<String>List of string which specifies the additional fields needed in the API response. See additional fields section for more details.
Additional fields

Following are the list of additional fields we support. You can pass any one of them as a list, and you will get corresponding fields in the output.

PropertyTypeDescriptionRequired/Optional
reviewSummaryStringAPI will return an AI generated summary of comments for a provider or location. These summaries reference the last 90 days of published comments. The minimum comment limit is 5.Optional

JSON Response

A JSON object containing the latest comments for the requested locations. Each JSON object within entities JSONArray represents a single location.

{
"status": {
"message": "success",
"code": 200
},
"data": {
"client": "Test Client",
"entities": [
{
"id": "123456",
"name": "Surgical Services",
"reviewSummary":"The reviews highlighted several positive points about the healthcare provider. Patients felt the doctor was professional, caring, a good listener, and took time to understand their concerns. Multiple patients were very happy with their treatment and grateful for the care they received. However, one patient had an unsatisfactory experience feeling the doctor seemed annoyed, rushed, and uncaring about their condition. This highlights an opportunity for the provider to improve patient interactions by showing more empathy, fully listening to patient concerns, and taking whatever time is needed, regardless of schedule constraints. Additionally, the cost of prescriptions should be considered to provide affordable treatment options. Overall most patients reported very positive experiences feeling heard, understood, and effectively treated. But the one negative review shows room for improving patient interactions and affordability of care. Addressing those factors could help create consistently positive experiences for all patients.",
"totalCommentCount": 11,
"totalRatingCount": 14,
"totalSurveyCount": 48,
"overallRating": {
"name": "Overall Satisfaction",
"value": 3.5,
"questionRatings": [
{
"name": "Please rate your overall satisfaction:",
"value": 3.5,
"responseCount": 33
}
]
},
"comments": [
{
"id": 23654444,
"source": "Test Survey",
"mentionTime": "2017-05-28T07:05:03Z",
"wordCount": 3,
"comment": "Test Survey feedback",
"ratings": [],
"response": {
"responseText": "thank you for your feedback",
"respondedBy": "bf Administrator",
"respondedTime": "2017-05-28T07:06:19Z"
}
},
{
"id": 23653088,
"source": "Patient Experience Survey",
"mentionTime": "2017-05-28T05:44:23Z",
"wordCount": 2,
"comment": "only comment",
"ratings": []
},
{
"id": 23653055,
"source": "Patient Experience Survey",
"mentionTime": "2017-06-28T04:44:28Z",
"wordCount": 5,
"comment": "Great comment with annotation",
"ratings": [
{
"name": "Ease of Scheduling",
"value": 3.75
}
],
"response": {
"responseText": "Final annotation edited by Avatar",
"respondedBy": "bf Administrator",
"respondedTime": "2017-05-28T05:30:37Z"
},
"overallRating": {
"name": "Overall Satisfaction",
"value": 2.5
}
},
{
"id": 23653033,
"source": "Patient Experience Survey",
"mentionTime": "2017-06-27T16:59:39Z",
"wordCount": 4,
"comment": "Excellent Comment by dolphin",
"ratings": [
{
"name": "Ease of Scheduling",
"value": 3.75
}
],
"overallRating": {
"name": "Overall Satisfaction",
"value": 3.75
}
},
{
"id": 23652626,
"source": "Patient Experience Survey",
"mentionTime": "2017-05-19T10:11:55Z",
"wordCount": 2,
"comment": "Excellent service!",
"ratings": [
{
"name": "Ease of Scheduling",
"value": 2.5
}
],
"response": {
"responseText": "Thanks for your feedback",
"respondedBy": "Chase Ausley",
"respondedTime": "2017-06-28T14:39:32Z"
},
"overallRating": {
"name": "Overall Satisfaction",
"value": 2.5
}
},
{
"id": 23652572,
"source": "Patient Experience Survey",
"mentionTime": "2017-06-19T09:56:00Z",
"wordCount": 3,
"comment": "good Secure survey",
"ratings": [
{
"name": "Ease of Scheduling",
"value": 3.13
}
],
"response": {
"responseText": "test 123 edited",
"respondedBy": "bf Administrator",
"respondedTime": "2017-06-22T09:28:42Z"
},
"overallRating": {
"name": "Overall Satisfaction",
"value": 1.25
}
},
{
"id": 23652477,
"source": "Patient Experience Survey",
"mentionTime": "2017-06-16T11:51:10Z",
"wordCount": 5,
"comment": "Excellent comment by tpk tester",
"ratings": [
{
"name": "Ease of Scheduling",
"value": 3.13
}
],
"overallRating": {
"name": "Overall Satisfaction",
"value": 5
}
},
{
"id": 23652460,
"source": "Patient Experience Survey",
"mentionTime": "2017-06-16T11:40:03Z",
"wordCount": 4,
"comment": "excellent with overall rating",
"ratings": [
{
"name": "Ease of Scheduling",
"value": 2.5
}
],
"overallRating": {
"name": "Overall Satisfaction",
"value": 2.5
}
},
{
"id": 23652445,
"source": "Patient Experience Survey",
"mentionTime": "2017-06-16T10:39:08Z",
"wordCount": 5,
"comment": "services are really good",
"ratings": [
{
"name": "Ease of Scheduling",
"value": 1.25
}
]
},
{
"id": 23652398,
"source": "Patient Experience Survey",
"mentionTime": "2017-05-16T05:10:34Z",
"wordCount": 6,
"comment": "very good care provider - dolphin",
"ratings": [
{
"name": "Ease of Scheduling",
"value": 3.8
}
],
"response": {
"responseText": "test response",
"respondedBy": "bf Administrator",
"respondedTime": "2017-06-16T07:00:55Z"
}
},
{
"id": 23653147,
"source": "Patient Experience Survey",
"mentionTime": "2017-05-20T07:20:48Z",
"wordCount": 2,
"comment": "good one",
"ratings": []
}
],
"totalPages": 1,
"ratings": [
{
"name": "Ease of Scheduling",
"value": 4.1,
"questionRatings": [
{
"name": "Please rate the ease of scheduling the appointment:",
"value": 4.1,
"responseCount": 44
},
{
"name": "Please rate the courtesy and helpfulness of the office staff:",
"value": 4.2,
"responseCount": 40
}
]
}
]
}
],
"filter": {
"minThreshold": 0,
"minRatingCount": 30,
"minSurveyCount": 0,
"minWordCount": 0,
"days": 365,
"page": 1,
"perPage": 20,
"showComments": true,
"showRatings": true,
"configVersion": "v2",
"period": {
"to": "2017-06-28T14:41:56Z",
"from": "2016-05-28T00:00:00Z"
}
}
}
}

JSON Response Parameters

PropertyTypeDescription
data.filterObjectThe filters applied on the testimonials
data.clientStringOrganization Name in our dashboard
data.entitiesArrayThe physician entities for which data is being returned
data.entities.idStringUnique identifier of the entity
data.entities.nameStringThe name of the entity
data.entities.reviewSummaryStringThe Review Summary of the entity
data.entities.totalRatingCountIntegerTotal number of survey responses available for primary rating.
data.entities.totalCommentCountIntegerNumber of actual comments available for the entity
data.entities.totalSurveyCountIntegerTotal number of surveys available for the entity
data.entities.overallRating.nameStringOverall Rating name
data.entities.overallRating.valueDecimalOverall rating of the Provider
data.entities.overallRating.questionRatingsArrayIndividual question level rating which contributed for the overall rating
data.entities.overallRating.questionRatings.nameStringQuestion name contributed for overall rating
data.entities.overallRating.questionRatings.valueDecimalStar rating of the question
data.entities.overallRating.questionRatings.responseCountIntegerNo. of responses received for this question
data.entities.ratingsArrayThe ratings for this entity
data.entities.ratings.nameStringThe name of the rating
data.entities.ratings.valueDecimalThe score
data.entities.ratings.questionRatingsArrayList of questions used for calculating this rating
data.entities.ratings.questionRatings.nameStringQuestion text
data.entities.ratings.questionRatings.valueDecimalQuestion rating
data.entities.ratings.questionRatings.responseCountIntegerTotal number of responses for this question
data.entities.commentsArrayThe comments for this entity
data.entities.comments.idIntegerUnique identifier of the Comment
data.entities.comments.commentStringThe comment content
data.entities.comments.overallRatingObjectOverall rating of the comment
data.entities.comments.overallRating.nameStringOverall rating name
data.entities.comments.overallRating.valueDecimalOverall rating of the comment
data.entities.comments.ratingsArrayIndividual ratings
data.entities.comments.ratings.nameStringThe name of the rating
data.entities.comments.ratings.valueDecimalIndividual question rating
data.entities.comments.mentionTimeDatetime (ISO-8601)The date & time at which this review was mentioned