Model classes
For each Resource type and data type in FHIR, the SDK contains a class in the form of a public class. Creating a new Patient resource instance, and an instance of the Identifier data type:
var pat = new Patient();
var id = new Identifier();
Important
When you are creating an instance of a resource or data type, lookup the definition in the FHIR specification to see which elements are mandatory for that particular type.
Class fields
The SDK classes have a field for each of the elements in the Resource or data type model.
For example, the Patient resource has an active
element:
The Patient class in the SDK has a field called Active
that corresponds with this element:
Likewise, the Identifier data type has an element called use
:
And the Identifier class in the SDK has a field called Use
that corresponds with this element:
As you can see, the classes and fields all have inline documentation describing them.