Nepal HMIS FHIR Implementation Guide – 🚨 DRAFT VERSION
0.0.1-ballot - ci-build

Nepal HMIS FHIR Implementation Guide – 🚨 DRAFT VERSION - Local Development build (v0.0.1-ballot) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Extension: Ethnic Code

Official URL: https://fhir.hmis.gov.np/StructureDefinition/ethnic-code | Version: 0.0.1-ballot
Active as of 2025-09-08 | Computable Name: EthnicCodeEx
Copyright/Legal: Used by permission of HL7 International, all rights reserved Creative Commons License

Extension to capture जाति कोड (ethnicity) based on Nepali classification

Context of Use

This extension may be used on the following element(s)

- Element ID: `Patient`

Usage info

Usages:

- Use this Extension: NP Core Patient Profile

You can also check for usages in the FHIR IG Statistics

### Formal Views of Extension Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

- Differential Table
- Snapshot Table
- Statistics/References
- All

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Ethnic Code
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://fhir.hmis.gov.np/StructureDefinition/ethnic-code"
value[x] |  | 0..1 | Coding | Value of extension Binding: Ethnic Code (required)
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Ethnic Code
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://fhir.hmis.gov.np/StructureDefinition/ethnic-code"
value[x] |  | 0..1 | Coding | Value of extension Binding: Ethnic Code (required)
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Coding: Extension to capture जाति कोड (ethnicity) based on Nepali classification

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Ethnic Code
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://fhir.hmis.gov.np/StructureDefinition/ethnic-code"
value[x] |  | 0..1 | Coding | Value of extension Binding: Ethnic Code (required)
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Ethnic Code
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://fhir.hmis.gov.np/StructureDefinition/ethnic-code"
value[x] |  | 0..1 | Coding | Value of extension Binding: Ethnic Code (required)
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Coding: Extension to capture जाति कोड (ethnicity) based on Nepali classification

Other representations of profile: CSV, Excel, Schematron

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Extension.value[x] | required | EthnicCodeVS(a valid code from Ethnic Code) `https://fhir.hmis.gov.np/ValueSet/ethnic-code` From this IG

#### Constraints

Id | Grade | Path(s) | Details | Requirements
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |