So I've been tearing my hair out the past couple of days trying to create a fhir profile based on the Basic resource, and create an instance of that resource compliant with the profile.
I cannot for the life of me find a simple straight forward example of how you are supposed to do this as the documentation is explains everything in functional chunks and doesn't at any point seem to put anything together.
Essentially I'm just looking for one xml StructureDefition defining a profile based on Basic, and another xml Basic resource which can correctly validate against the profile. I've tried writing it myself but I can't make sense of the documentation and HAPI throws an error with each attempt.
If there are no straight forward examples, please could someone write one in place here to serve for other people looking for the same thing, as an example, the profile has the following:
Name: String, Required, min:1, max:1
TimeOfRecording: Timestamp, Required, min:1, max:1
AttendingStaff: String, Not Required, min: 1, max: unlimited.
Thanks