Generate QR Codes Programmatically
The 1CPD mobile app supports scanning QR codes to prepopulate its record an activity form. Those codes can be generated in app, online by anyone, or by programmatically writing your own as shown below.
Each QR code is an image representation of the onecpd://
URL scheme and is followed by
the following optional key value pairs, all URL encoded:
Key | Value |
---|---|
activity_type | A string representation of the RCVS CPD activity type that best represents the activity conducted. For a current list of activity types please view our API. |
date | A string representation of the date the activity was completed in the following format: YYYY-MM-DD |
end_date | Same as date but must be at least one day after date. Exclude if the same as date. |
minutes | An integer representing the total number of minutes devoted to the activity. Must be divisible by 15. |
note | A string containing any miscellaneous notes on the activity conducted. Maximum 4000 characters. |
other_activity_type | A string describing the activity_type if activity_type is set to "Other". Maximum 80 characters. |
topic | A string that serves as the title of the activity. Maximum 80 characters. |
An example of a properly formatted QR code URL is as follows:
onecpd://activity_type=Distance%20learning%20-%20webinar&date=2020-01-27&minutes=75¬e=My%20long%20notes%20about%20this%20activity.&topic=My%20topic