{ "error": { "type": "Unauthorized", "message": "Current user cannot create this object" }}
I'm surprised there isn't more feedback on this thread. I agree with Sam's comments & share the same concerns. We find this change in access to end points confusing and troublesome. There wasn't any indication until Friday that the preview access key authorization was limited to certain end points.
If the qualified registry doesn't have access who will be authorized & how?
How will submission-level properties be set or updated without access to the submission end point? For example, I can see a use case where an entityType value needs to be changed.
Ivana's post mentioned measure-sets PUT and POST did not include DELETE. Are we authorized to delete?
I know this is a work in process, but anything you can do to provide more information proactively would be greatly appreciated. It's inefficient to encounter errors using documented functionality only later learn of undocumented restrictions.
Hi all -If you're in the Developer Preview, you have an API key that is associated with an 'organization'. This affects what endpoints you are authorized to use, and what behavior each endpoint has. Below, I've detailed what endpoints you should use and how endpoints behave in regards to creating, reading, updating and deleting data.OverviewThe Submissions API has three types of objects: submissions, measurementSets, and measurements.With your organization API key, you can read, update and delete data that you yourself have submitted at the measurementSet- and measurement-level. However, only a user with the appropriate authorizations can view the entire submission object of a MIPS-eligible doctor or practice.
- A submission object contains any performance data submitted on behalf of a single MIPS-eligible clinician or practice.
- A measurementSet object represents a set of performance data related to one specific category (Quality, Improvement Activities, or Advancing Care Information), and is tied to a submission object.
- A measurement object represents one single data point related to a specific measure in a given category, and is tied to a measurementSet object.
Creating dataWith your organization API key, you can create measurementSets and add them to any submission object. In practice, this means that with your organization API key, you are authorized to send POST requests to these two endpoints: https://qpp.cms.gov/api/submissions/measurement-sets and https://qpp.cms.gov/api/submissions/measurements. If you attempt to send a POST request to https://qpp.cms.gov/api/submissions/submissions, you will get the following ' 401Unauthorized' error message:
{"error": {"type": "Unauthorized","message": "Current user cannot create this object"}}
Reading dataWhen you send a GET request to https://qpp.cms.gov/api/submissions/submissions, you will only see measurementSets that you've submitted. For example, if you send a GET request to https://qpp.cms.gov/api/submissions//submissions for a specific TIN, you'll only see measurementSets that you've created and submitted for that TIN, even though the submission object for that TIN may contain measurementSet objects created by other users.Editing and deleting data
With your organization API key, you can update data that you yourself have submitted at the measurementSet- and measurement-level. In practice, this means that with your organization API key, you are authorized to send PUT and PATCH requests to these two endpoints: https://qpp.cms.gov/api/submissions/measurement-sets and https://qpp.cms.gov/api/submissions/measurements for measurementSet objects and measurement objects that you have created.
"id": string,
"createdAt": datetime,
"updatedAt": datetime,
"programName": string,
"entityType": string,
"taxpayerIdentificationNumber": string,
"nationalProviderIdentifier": string,
"entityId": string,
"performanceYear": integer
Hi Ivana,I actually ended up reading this post because I was researching about the DELETE and UPDATE workflows. After reading these posts following is my understanding. Could you please confirm.Also, if you think I have missed anything request you to add more information to this topic.On the production API, submitter organizations :1. Will be able to create the submissions only by using /measurement-sets API. Every (first) time we create a measurement-set with a unique TIN-NPI-SubmissionMethod (for individual) and TIN-SubmissionMethod (for GPRO) , it will give us the submission-id. Subsequent measurement-sets for the same TIN-NPI or TIN will be appended to the same submission id.
2. Will NOT be able to delete this submission id. They can however DELETE the measurement set. Yes this is correct.Question : if we delete all the measurement-sets that we have created, will that also delete the associated submission-id ? or it will still exist ? And we will just keep adding\removing to the SAME submission-id ?. The associated submission-id will still exist.I am asking from a specific use-case perspective. Discussions with my business team are moving towards deleting the whole submission instead of modifying it. What is the recommendation from the QPP API owners ? You should delete your own measurement-sets (i.e. data you've submitted).3. Will be able to create individual measurements ONLY if they have measurement-set ids Yes.
4. Will be able to delete measurements they have created.
Question : if we delete all the measurements that we have created, will that also delete the associated measurement-id and also if there are no more other measurement-sets, will it also delete the respective submission-id ? Submission-id and measurementset-ids are not deleted when you delete measurements.5. Will be able to update measurement-sets and measurements they have created. Yes you are able to update data that you've created.
Scenarios :1) We submitted 10 measures and realized that we shouldn't have submitted few of them.
- My understanding is we will have to correct this by deleting the measurement(s) added by error. Yes this is correct.
2) We got score for a reporting period which we think is not good enough and we need to increase the reporting period.
- Update the respective measurement-set with the desired reporting period and with the respective updated processing results. Yes this is correct.
I think I started reading this specific topic a bit late :( and now I am in confused state because of the differences in the developer-preview and actual production APIs. But thankfully it's not too late :-)If you could answer this as early as possible it will help. Also, I have been referring to this so far : https://qpp-submissions-sandbox.navapbc.com/#/
But it doesn't say which API will be available in production and which one is preview-only. If you or the respective owners could get that updated, it will be extremely helpful. Agree! Adding a ticket to our backlog to add more descriptions to each endpoint on https://qpp-submissions-sandbox.navapbc.com to explain how it works in public sandbox vs production/developer preview. I don't have an ETA on when we will work on this ticket at this time.
To view this discussion on the web visit https://groups.google.com/d/msgid/qpp-apis/7e46eb5b-85f1-4ee2-a242-1a2c1e4acd59%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Developer Group for QPP APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qpp-apis+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/qpp-apis.
Responses inline.
To unsubscribe from this group and stop receiving emails from it, send an email to qpp-apis+u...@googlegroups.com.
Responses inline.
To unsubscribe from this group and stop receiving emails from it, send an email to qpp-apis+u...@googlegroups.com.