Hi David,
I see you are completely in the dark. Your question in another email shows that quite clear.
I mean this question
Should I create a new database table to store these fields:
Last Name:
First Name:
Date of Birth Date:
Gender:
Phone:
Email:
Emergency Contact Person:
What you need to store are instances of the reference model. That is generic, it does not have fields like you mention. Those fields are defined in archetypes.
That is why I advised you yesterday, take a good look at the reference model. There is a good Java-version of it, written by Rong Chen.
Then take a good look at the archetypes at the CKM: http://www.openehr.org/ckm/
You need to understand the match between them, the documentation must help you. You must understand the documentation also.
However, the documentation is more about the medical meaning of the generic reference model.
But for you, when developing most important is to understand the technical match, that is why the Java-code <--> archetypes match is good for you to understand..
Don't do anything else before you understand this part completely.
You don't need to memorize it all, just understand. Memorizing comes automatically when working with it.
Take your time, give yourself a week or more to do so. That is quite normal amount of time.
When you have good understanding of the match between the Java-reference-model code, the documentation and the archetypes on CKM.
Then come back to this list, and we can discuss how to proceed.
Seref advises against building a kernel on your own, except when you do it for academic exercise.
I disagree with him. I think it is quite doable, but it is not a small thing to do.
But with good help and not being afraid to ask, it can be done, and quite good. But it will take a year or more.
Do you have so much time? You will really need it.
Pablo advises you to use a relational database.
I don't think that is suitable for a good working kernel, because you cannot run path-based queries against it, but for a start it might work.
But at this moment, just understand how the match is between:
archetypes <-\\//-> Rong's Java reference model code <-\\//-> medical data/documentation
Just concentrate on that, the rest will become clear after that. You are doing your first steps on this journey. You need time, much time.
good luck
Bert Verhees