Carries the languages spoken or written by a staff member, including the language code and proficiency level. It follows STF in MFN staff master file messages and is used by credentialing, scheduling, and patient access systems to match patients with providers who speak their language.
from zato.hl7v2.v2_9 import LAN
from zato.hl7v2.v2_9 import XCN, CWE
lan = LAN()
lan.primary_key_value_lan = '1'
lan.language_id = CWE(
identifier='en',
text='English',
name_of_coding_system='ISO639-2'
)
lan.proficiency_level = CWE(
identifier='FL',
text='Fluent',
name_of_coding_system='HL70464'
)How to construct and work with real-world LAN segments.
Records Spanish as a spoken language with fluent proficiency for a bilingual patient access coordinator
from zato.hl7v2.v2_9 import LAN
from zato.hl7v2.v2_9 import CWE
lan = LAN()
lan.set_id_lan = '1'
lan.language_code = CWE(
identifier='es',
text='Spanish',
name_of_coding_system='ISO639-2'
)
lan.language_ability_code = CWE(
identifier='SPK',
text='Speak',
name_of_coding_system='HL70403'
)
lan.language_proficiency_code = CWE(
identifier='FL',
text='Fluent',
name_of_coding_system='HL70404'
)Records French as a read-and-write language with good proficiency for provider-patient correspondence
from zato.hl7v2.v2_9 import LAN
from zato.hl7v2.v2_9 import CWE
lan = LAN()
lan.set_id_lan = '2'
lan.language_code = CWE(
identifier='fr',
text='French',
name_of_coding_system='ISO639-2'
)
lan.language_ability_code = CWE(
identifier='RWR',
text='Read and Write',
name_of_coding_system='HL70403'
)
lan.language_proficiency_code = CWE(
identifier='GS',
text='Good',
name_of_coding_system='HL70404'
)Records Mandarin Chinese with both spoken and written ability codes and a fluent proficiency level for multilingual scheduling
from zato.hl7v2.v2_9 import LAN
from zato.hl7v2.v2_9 import CWE
lan = LAN()
lan.set_id_lan = '3'
lan.language_code = CWE(
identifier='zh',
text='Chinese Mandarin',
name_of_coding_system='ISO639-2'
)
lan.language_ability_code = CWE(
identifier='SPK',
text='Speak',
name_of_coding_system='HL70403'
)
lan.language_proficiency_code = CWE(
identifier='FL',
text='Fluent',
name_of_coding_system='HL70404'
)Step-by-step guides for working with HL7 v2 in Zato.
LAN records language capabilities and preferences including spoken languages, written languages, and communication preferences. It's used to track provider language skills for multilingual client services in wellness programs.
Use ISO639-2 two-letter language codes for languages:
lan.language_id = CWE(
identifier='en',
text='English',
name_of_coding_system='ISO639-2'
)Use HL70464 table values like FL (Fluent), GS (Good), or FA (Fair) to indicate language proficiency levels.
Use the preference field as a list of CWE objects to indicate multiple communication preferences like SPK (Spoken) and WRT (Written) for the same language.
Y indicates this is the preferred language for communication, while N means it's not the primary preference. Use this to identify the provider's primary communication language.
Zato connects to any system that speaks HL7v2 over MLLP or FHIR over REST. This includes Epic, Cerner, Meditech, Allscripts, and other EHR platforms.
Yes, Zato has built-in MLLP support for sending and receiving HL7v2 messages. MLLP channels handle the framing protocol automatically.
Zato supports HL7 v2.9, which is backward compatible with earlier versions including v2.3, v2.5, and v2.7. Standard segments and datatypes are available as typed Python classes.
Yes. Zato handles both HL7v2 and FHIR natively, so you can parse v2 messages and build FHIR resources with IG-specific extensions in the same service. Typed Python classes are available for both protocols, including extensions from US Core, UK Core, Da Vinci, and other Implementation Guides.
Complete list of fields in the LAN segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | set_id_lan | SI | Required | No | - |
| 2 | language_code | CWE | Required | No | HL70296 |
| 3 | language_ability_code | CWE | Optional | Yes | HL70403 |
| 4 | language_proficiency_code | CWE | Optional | No | HL70404 |
Get started with Zato and connect your systems in minutes.