Value Sets Overview¶
Value sets are curated collections of codes from one or more code systems. They define which codes are valid for a particular use case or context.
What is a Value Set?¶
A value set is a selection of codes from code systems that are appropriate for use in a specific context. For example, a "Blood Type" value set would include only the codes for different blood types from a blood group code system.
Available Value Sets¶
Clinical Value Sets¶
-
ABO and Rh blood group classifications for patient records and transfusion management.
-
Common medications used in Bangladesh healthcare facilities.
-
Vaccines administered in Bangladesh immunization programs.
-
Pharmaceutical dose forms (tablets, capsules, injections, etc.).
-
Disease and condition codes based on ICD-11 classification.
Demographics Value Sets¶
-
Religious affiliations recognized in Bangladesh.
-
71 occupation categories for patient demographic data.
-
Languages spoken in Bangladesh and internationally.
-
International country codes for nationality and address.
Geographic Value Sets¶
-
8 administrative divisions of Bangladesh.
-
64 districts across Bangladesh.
-
Sub-district level administrative units.
-
Major city corporations in Bangladesh.
-
Municipality codes for urban areas.
Administrative Value Sets¶
-
Types of identifiers used in Bangladesh healthcare (NID, Birth Registration, etc.).
-
Types of patient encounters (inpatient, outpatient, emergency).
-
Status values for patient encounters.
Immunization Value Sets¶
-
Adverse reactions to immunizations.
-
Routes of administration for vaccines.
-
Body sites for vaccine administration.
Value Set Structure¶
Using Value Sets¶
In FHIR Resources¶
{
"resourceType": "Patient",
"extension": [{
"url": "http://zarishsphere.org/fhir/StructureDefinition/religion",
"valueCodeableConcept": {
"coding": [{
"system": "https://fhir.dghs.gov.bd/core/CodeSystem/bd-religions",
"code": "1",
"display": "Islam"
}]
}
}]
}
Validation¶
Value sets are used to validate that codes used in FHIR resources are appropriate for the context:
// Validate a code against a value set
valid := valueSet.ValidateCode("https://fhir.dghs.gov.bd/core/CodeSystem/bd-religions", "1")
Value Set Categories¶
| Category | Count | Description |
|---|---|---|
| Clinical | 5 | Medical and pharmaceutical value sets |
| Demographics | 4 | Patient demographic information |
| Geographic | 5 | Bangladesh administrative divisions |
| Administrative | 3 | Healthcare administration |
| Immunization | 3 | Vaccination-related codes |
Best Practices¶
Use Appropriate Value Sets
Always use the most specific value set available for your use case. For example, use the Bangladesh-specific value sets for local implementations.
Version Binding
Specify whether your binding to a value set is "required", "extensible", or "preferred" based on your needs.
Expansion
Value sets can be expanded to show all included codes at a specific point in time.