GSOC 2023: o3-Draw-on-body-diagram app- Project Updates & Discussion

NEXT STEP: Creating and retrieving images to and from the backend server.

This is the progress of the project

Hitting the save button to create an attachment of annotated image throws an error;

Testing the api for attachment using postman, seems to work fine hitting these;

https://demo.openmrs.org/openmrs/ws/rest/v1/attachments

{
    "uuid": "c1fccac8-89a9-4e12-b07d-e7760046655b",
    "comment": "testimage",
    "obsDatetime": "2023-08-07T17:55:10.000+0000"
}

https://demo.openmrs.org/openmrs/ws/rest/v1/attachment?patient=adc4e0fc-c1b8-49a8-adf2-a7c304d56cd7

{
    "results": [
        {
            "bytesContentFamily": "IMAGE",
            "bytesMimeType": "image/jpeg",
            "comment": "testimage",
            "dateTime": "2023-08-07T17:55:10.000+0000",
            "links": [
                {
                    "rel": "self",
                    "resourceAlias": "attachment",
                    "uri": "http://demo.openmrs.org/openmrs/ws/rest/v1/attachment/c1fccac8-89a9-4e12-b07d-e7760046655b"
                }
            ],
            "uuid": "c1fccac8-89a9-4e12-b07d-e7760046655b"
        }
    ]
}

seems i need to create a new endpoint to handle annotated image?

@ibacher

2 Likes