Primitive Structure Type
The PrimitiveStructureType
is an essential part of the StructureSchema package in stapi.ai's Core, which forms the
building blocks for Domain-Driven Design (DDD) business logic modeling in a declarative way. It encapsulates primitive
data types as defined in the FHIR StructureDefinition.
FHIR Connection and Domain-Driven Design
In FHIR, primitive types are the basic building blocks of data, representing simple data like integers, strings,
booleans, etc. Similarly, in stapi.ai, PrimitiveStructureType
represents these elementary data types. The
characteristics of these types in FHIR, such as their constraints or behavior, are faithfully reproduced in
the stapi.ai Core.
From a DDD perspective, PrimitiveStructureType
can be likened to the basic building blocks that make up more
complex Value Objects and Entities. Just like in any domain model, the primitive types provide the fundamental
data that the more complex types are composed of.
Role in Declarative Programming
The PrimitiveStructureType
plays a foundational role in declarative programming as part of stapi.ai Core. By defining
these elementary data types, stapi.ai provides the 'what' of the system—declaring the types of data the system can
handle. The actual handling ('how') is taken care of by the underlying system itself.
By reflecting FHIR's primitive types in its structure, PrimitiveStructureType
allows users to express their
healthcare system's data needs using standardized, interoperable data models. This alignment with FHIR not only
simplifies the process of implementing healthcare IT systems but also promotes better interoperability and data sharing.
Keep in mind that PrimitiveStructureType
is a part of a broader system—the StructureSchema. To gain a comprehensive
understanding of the system, explore the other components such as ComplexStructureType
and FieldDefinition.