Session 2 - Resources Flashcards
What are resources?
The building blocks that represent data and built using XML/JSON/RDF.
The smallest unit of exchange.
What is another term for Resources?
The Content Model.
What is an Observation resource?
Used for things that are measured.
Names and Purpose of each Resource
Go to the FHIR website.
Are Resources case sensitive?
Yes.
What is cardinality?
Whether a resource is mandatory or not.
Min…Max
0…1
1…1
0…*
1…*
very rare to have 1…1, typically it is up to user to determine what is needed.
XML vs JSON
XML has order/hierarchy. JSON has no hierarchy.
What are flags?
Sigma = Is Summary = just the basics of resource
I = constraint
?! = modifying property
S = must support and defined by Profile
TU Trial Use
N Normative
D Draft
What is Base Resource?
The most base level resource
Resource -> Domain Resource -> every other resource.
All FHIR resources inherit from base Resource
What is binding?
The strength that an element binds to a value set.
Strengths can be required, extensible, example, etc
What are value sets?
Link to coded values. Think ICD, genders, lists in general.
Resource elements bind to value sets, which bind to code systems
(Element -> value set -> code system)
What is an extension?
A way to modify or add custom resource element.
Extensions are modified/added elements.
What are data types
Primitive (single data/element) or complex (multiple elements)
What are meta attribute examples?
Tags, profiles, security
Is Modifer can do what to the resource?
It can change the meaning or interpretation of the resource
What is Must Support
Doesn’t mean mandatory but must support it in some way. Cardinality defines mandatory or optional
What is the Element Base Type
The basic Element data type, from which all elements are derived
What is the backboneElement?
A specialization that adds modifierExtension
Resource element to Value Set to CodeSystem
Resource element to Value Set to CodeSystem
What is binding strength
Almost all elements that have codes are bound to their code systems — helps define if users own codes can be used, if codes can be modified, etc
What are the 4 binding strengths?
Required - must be used
Extensible - must be used, but can be extended/modified
Preferred - should be used, but don’t have to be
Example - just FYI
When creating your own codes, you should…
Create a new CodeSystem resource and list your codes there. Never just add codes to an existing/built-in CodeSystem
Resource and elements are case sensitive?
True
FHIR elements can never be empty?
True
XML format requires that elements appear in the order documented?
True
XML format requires that elements appear in the order documented?
True
In JSON format, elements can appear in any order?
True
Resource Heirarchy
Resource —> DomainResource and Bundle, Binary, Parameters —> All other resources
All resources inherit from Domain Resource
When a resource is updated on a server, the following steps occur
- Merge existing and new tags
- Replace existing profiles with new profiles
- Merge existing security and new security labels
What is the DomainResource?
Extends directly from base Resource
All other resources inherit from it
Can contain other resources
What is the Narrative?
It is the text element of the DomainResource, that captures the human-readable summary information about the resource
What is an extension?
Simply our own customer element.
Very common in FHIR.
Most common example is race/ethnicity in the Patient resource
Extension vs ModifierExtension?
Extension can be ignored.
ModifierExtension cannot be ignored. This is the same thing as extension but has a modifying property. Best to avoid use of these when possible.
What are the general references between resources?
- Literal reference: resource ID, URL
- Logical reference: identifier
What’s involved with validating a resource?
Check the structure, cardinality, values, coding, invariant, profiles, business rules tics
Use one of the following validators tools (Schema, Schematron, StructureDefinition, Validator, ShEx)
FHIR Validator is provided by the HL7 Spec.
StructureDefinition: using profile is most powerful way to validate
Review these Resources; know names, examples, purpose, and where to find them
http://hl7.org/fhir/resourceguide.html
http://hl7.org/fhir/resourcelist.html