Question 12(a) 2025 · May-June · Paper 32 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 12
Part (a)
Question 5
Show text version of question
Question 12
Part (a)
patient. Some of the attributes required in the class are listed in the table.
Attribute Data type Description
PatientID STRING Unique identifier of the patient
Name STRING Patient’s full name, surname first
DoctorID STRING ID of doctor administering treatment
Treatment is prioritised with a numeric scale of 1 to 5.
Complete the class diagram for Patient, to include:
- attribute and data type for the date of birth
- attribute and data type for the priority
- methods to assign the patient ID, priority and doctor ID
- methods to return the patient ID, patient date of birth and the priority.
Patient PatientID : STRING
Name : STRING
....................................................... : ....................................................................
....................................................... : ....................................................................
DoctorID : STRING
................................................................................................................................
SetName(FullName : STRING)
SetDateOfBirth(DOB : DATE)
................................................................................................................................
................................................................................................................................
................................................................................................................................
GetName()
................................................................................................................................
................................................................................................................................
GetDoctorID()
Question 13
, ,
Why this question appears here
49% assigned-topic match · Data types and structures › Data types and records
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9618_s25_qp_32.pdf
