Question

In: Computer Science

Create two data documents containing a patientRecord – one in XML and another in JSON format...

Create two data documents containing a patientRecord

– one in XML and another in JSON

format

Your patientRecord must contain the following data:

-A patient’s name & ID number

-The date of his/her last appointment & the date of the last update

-The patient’s allergies – you must include 2 – one for a food allergy and one for a drug

allergy

-The patient’s preference – you must include 2 – one for a doctor and one for his/her

method of contact (which would have a value of text, phone, or email)

Solutions

Expert Solution

The XML data for the patient record is:

{
"patientRecord": {
"patient_name": "john doe",
"patient_id": "12345",
"appointment_date": "2019-10-08T12:30:00",
"updated_date": "2019-10-05T12:30:00",
"allergies": {
"food": "garlic",
"drug": "amoxicillin"
},
"preferences": {
"doctor": "Dr Mary Jane",
"communication": "phone"
}
}
}

The XML format of the same data is:

<?xml version="1.0" encoding="UTF-8"?>
<root>
   <patientRecord>
       <allergies>
           <drug>amoxicillin</drug>
           <food>garlic</food>
       </allergies>
       <appointment_date>2019-10-08T12:30:00</appointment_date>
       <patient_id>12345</patient_id>
       <patient_name>john doe</patient_name>
       <preferences>
           <communication>phone</communication>
           <doctor>Dr Mary Jane</doctor>
       </preferences>
       <updated_date>2019-10-05T12:30:00</updated_date>
   </patientRecord>
</root>


Related Solutions

Design at least five XML documents. One of these XML is main page.
Description Design at least five XML documents. One of these XML is main page.     There are several links which link to other XML document. Each XML document has an XSLT document which transforms XML document into HTML format.
1. Create an xml documents called company.xmlcontaining two sections employees and invoices with the following specifications:...
1. Create an xml documents called company.xmlcontaining two sections employees and invoices with the following specifications: A. • Employee ▪ Name o Last name o First name ▪ Address ▪ Hire Date B.​ ▪ Invoice • Order (Should have an order number attribute) o Name (of the customer) o Address (of the customer) o Total price (of the order) o Date (of the order) • Shipping info o Name (of the company) - Use either of the following: ▪ Fed...
1. Create one XML data file and one DTD file for the entire data set (using...
1. Create one XML data file and one DTD file for the entire data set (using a subset of SQL assignment – see below). [Use of ID and IDREF are not required.] 2. Write and execute XML statements for the following two queries: Q1. Find the name of an employee who lives in Lincoln and works in Omaha. Q2. Find salaries of employees who live in the same cities as the companies for which they work. [You can replace one...
Please give a brief description about the Remote data like REST, JSON, XML, AJAX and SOAP...
Please give a brief description about the Remote data like REST, JSON, XML, AJAX and SOAP API’s ?
c++ (1) Create a class, named Board, containing at least one data member (two-dimensional array) to...
c++ (1) Create a class, named Board, containing at least one data member (two-dimensional array) to store game states and at least two member functions for adding players’ moves and printing the game board. Write a driver to test your class. (2). The data type of the two-dimensional array can be either int or char. As a passlevel program, the size of the board can be hardcoded to 10 or a constant with a pre-set value, anything between 4 and...
Create original emails and memos in proper business format and etiquette. Create two emails and one...
Create original emails and memos in proper business format and etiquette. Create two emails and one memo. Each one is worth 20 points. Research companies that you are interested in and imagine that you hold a position in that company. Write one email to a colleague asking for help with a project. Write one email to your boss asking to be included in future projects which may be a bit beyond the reach of your experience. Write a memo from...
I need some information on how to show the code to create a JSON data structure...
I need some information on how to show the code to create a JSON data structure with food, calories, fat, protein. while using PHP. as well as be able to add an additional value through a text box if possible. The program only needs to read the json data in program and show output in the console I would like the data to be shown in a table once its been compiled.
(c++)You will be given a data file containing data for 10 students. The format is as...
(c++)You will be given a data file containing data for 10 students. The format is as follows - grades are double precision numbers: Line 1: Header Information Line 2: Student Full name Line 3: Student ID Line 4: testgrade_1 testgrade_2 testgrade_3 testgrade_4 testgrade_5 Line 5: Student Full name Line 6: Student ID Line 7: testgrade_1 testgrade_2 testgrade_3 testgrade_4 testgrade_5 Line 8: Student Full name Line 9: Student ID Line 10: testgrade_1 testgrade_2 testgrade_3 testgrade_4 testgrade_5 Etc. Read the data into...
Create and display an XML file in Android studio that has -One edittext box the does...
Create and display an XML file in Android studio that has -One edittext box the does NOT use material design -One edittext box that DOES use material design Provide a “hint” for each, and make sure the string that comprises the hint is referenced from the strings.xml file. Observe the differences in how the hints are displayed. Here is sample code for a material design editText: <android.support.design.widget.TextInputLayout         android:id="@+id/input_layout_price1Text"         android:layout_width="80dp"         android:layout_height="40dp"            >     <EditText             android:id="@+id/price1Text"             android:importantForAutofill="no"...
2. Program containing two modules: a. Create a class Code one programmer-written constructor Create several instance...
2. Program containing two modules: a. Create a class Code one programmer-written constructor Create several instance data attributes Create 3 methods which will each be invoked from the driver program - one method will not receive any parameters, but will return a value to driver program - one method will receive one parameter, and will also return a value to driver program - a display method will receive 2 parameters from driver program Define a constant properly; use the constant...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT