DTD_for_Step_4_Validation Tasks: 1. Retrieve the XML representation of all (but no more than 500) observations of patients whose name includes 'API' from OpenMRS. This XML format should be directly...

I thought I have this figured out, but I was incorrect. I have a few days to correct it, and I need help!


DTD_for_Step_4_Validation Tasks: 1. Retrieve the XML representation of all (but no more than 500) observations of patients whose name includes 'API' from OpenMRS.  This XML format should be directly from OpenMRS, NOT converted from its JSON representation. 2. Write an XSLT file to transform the XML from the first step to generate the following elements ONLY IF the observation is a height observation (concept uuid 5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA). You should use the concept uuid to find the height observations. You will NOT get credit if you find them by string matching on the concept names/text. 1. 'datetime' element · an attribute named 'original' with the original obsDatetime as its value · a 'date' element containing only the date (eg '2020-04-01') · a 'time' element in the 12 hour format (eg '02:15 P.M.') · a 'timezone' element (eg '-05:00') 2. 'person' element: the name of the patient (eg 'John D Patient', or '100-8 - John D Patient') 3. 'height' element: convert the original value in cm to inches and round to nearest integer (eg 70). 3. In the transformed XML, include the following. This should be achieved by your XSLT stylesheet. You should NOT edit the XML output manually. . an 'extractor' element with a 'name' child element that contains your name. . a 'query' element that contains information about the query you used to retrieve the data from OpenMRS, including the HTTP method, the URL (the address and query parameters separately), and non-hidden HTTP headers. · The transformed output XML should validate against this given DTD. There are plenty of comments in this DTD to show you what the elements and values should be.  However, note that being valid does not necessarily mean your output is correct. · Submit your XSLT stylesheet ONLY. Do not submit screenshots or XML input to/output from the stylesheet. Note also that indentation and white spaces around elements and attributes are not significant, i.e., it's acceptable if your output is in one line as long as it validates. Postman address: https://b581.site/openmrs/ws/rest/v1 Criteria: 1. Retrieves XML from OpenMRS with correct parameters and headers (as shown in your XSLT stylesheet) (4 points). 2. XSLT stylesheet can produce output with correct XML structure (elements, attributes) (8 points). 3. XSLT stylesheet can produce output with correct values (8 points).
Apr 17, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here