FHIR Chat · Interpretation of FHIR Address/HCIM AddressInformation · netherlands

Stream: netherlands

Topic: Interpretation of FHIR Address/HCIM AddressInformation


view this post on Zulip Alexander Henket (Dec 19 2018 at 09:43):

@Yuri Bonanno

This relates to BITS#MM-86:

Is AddressType of AddressInformation equal to visit address when Address.use = ‘home’ AND Address.type = 'physical' AND Address.use.extension = 'PHYS'? Or is it a visit address when Address.use = ‘home’ OR Address.type = 'physical' OR Address.use.extension = 'PHYS'?

Ok these are the harder questions. The mapping in the nl-core-address assumes that people upon creation of a FHIR instance conform to the rules outlined in the profile. The mapping outlined in the profile assumes AND.

Upon import you probably need to be more defensive because not every sending system might have complied with the mapping rules. You SHOULD assume that any instance/context that claims conformance to the nl-core-address in some way actually does, but maybe your application functions in more contexts in the real world.

Secondly: even though we all strive towards standardization there is common wisdom to be strict in what you send, be flexible in what you receive. This means that you probably want to cater for what to do when the AD_use extension was not used for example. In normal circumstances, not being able to parse the address into an HCIM is not worth refusal of a MedicationRequest as a whole. How much flexibility in the import you aim for is probably something you decide on a case by case basis.

view this post on Zulip Yuri Bonanno (Dec 27 2018 at 08:59):

@Yuri Bonanno

This relates to BITS#MM-86:

Is AddressType of AddressInformation equal to visit address when Address.use = ‘home’ AND Address.type = 'physical' AND Address.use.extension = 'PHYS'? Or is it a visit address when Address.use = ‘home’ OR Address.type = 'physical' OR Address.use.extension = 'PHYS'?

Ok these are the harder questions. The mapping in the nl-core-address assumes that people upon creation of a FHIR instance conform to the rules outlined in the profile. The mapping outlined in the profile assumes AND.

@Alexander Henket I am looking at the touchstone response for patient-XML from Nictiz right now, and according to the answer on BITS#MM-86, there is no AddressType to be discerned. The address.use = 'home', address.type = 'both' and address.extension[official] = true but there is no address.use.extension so there is no value for addressType, the last does not comply with nictiz standards Nictiz AddressInformation. According to these standards there should be an AddressType.

Is this a mistake in the XML or should the mapping be OR instead of AND?

view this post on Zulip Alexander Henket (Dec 28 2018 at 09:49):

@Ardon Toonstra could this be a content problem in what we have loaded in Touchstone? I'm pretty sure the profile is not the issue

view this post on Zulip Ardon Toonstra (Dec 28 2018 at 16:15):

I believe this is the XML you are referring to:

<address>
<extension url="http://fhir.nl/fhir/StructureDefinition/nl-core-address-official">
<valueBoolean value="true"/>
</extension>
<use value="home"/>
<type value="both"/>
<line value="Knolweg 1002">
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName">
<valueString value="Knolweg"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber">
<valueString value="1002"/>
</extension>
</line>
.......
</address>

Indeed, the XML does not contain an address.use.extension (I believe a lot of our example do not). Given this example, the Zib addressType should be HP - Primary Home (Officieel adres) based on .extension[official] = True AND .use = home.

view this post on Zulip Ardon Toonstra (Dec 28 2018 at 16:21):

The address.use.extension definition states "Further define the address use with the exact HCIM code. Mostly relevant to distinguish between different types of temporary addresses." If a specific 'vakantie' of 'tijdelijk' address needs to be communicated, the .use.extension is required to provide the exact meaning.

view this post on Zulip Ardon Toonstra (Dec 28 2018 at 16:22):

However, I do notice that in some of the addresses in our examples the entire addressType information is missing. We will adress this.

view this post on Zulip Yuri Bonanno (Jan 02 2019 at 09:15):

Indeed, the XML does not contain an address.use.extension (I believe a lot of our example do not). Given this example, the Zib addressType should be HP - Primary Home (Officieel adres) based on .extension[official] = True AND .use = home.

That is indeed the XML i am working on @Ardon Toonstra . Thanks for the answer but now I still feel that the description on the simplifier for address is not self explanatory.

There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world and adds all relevant components to express Dutch addresses.

A Dutch Address is a proper FHIR Address. Systems that do not understand any of the extensions, will be able to render and work with a Dutch address. Dutch addresses make certain address parts separately communicable. These parts are required for use in true Dutch systems when dealing with Dutch addresses, but may not have value for international systems when information gets sent abroad.

To have true compatibility an implementer SHOULD use the core Address parts as intended. To have addresses work for Dutch context, the implementer SHOULD in addition use the extension elements.

The HCIM defines certain address types in the AdresSoortCodelijst. These do not all have a one to one mapping in the FHIR Address datatype. The following explains how to deal with that.

HCIM Postal Address maps to Address.type 'postal';

HCIM Primary Home Address maps to Address.extension:official 'true' + Address.use 'home' + Address.use.extension 'HP';

HCIM Visit Address (Woon-/verblijfadres) maps to Address.use 'home' + Address.type 'physical' + Address.use.extension 'PHYS';

HCIM Temporary Address maps to Address.use 'temp';

HCIM Work Place Address maps to Address.use 'work';

HCIM Vacation Home Address maps to Address.type 'temp' + Address.use.extension 'HV'.

If Address.type is "both" then this is to be understood as a dual purpose address (postal and physical). Systems that support importing it like this are encouraged to do so, otherwise they may need to import this as two separate addresses.

In bold you can see the values that should be defined in the FHIR-message. The way it is worded here, it looks like Address.Use.Extension is a value that MUST be defined with a value of HP in order to get the Primary Home value for AddressType, which is apparently not the case. Maybe word it as "Optional(+ Address.use.extension 'PHYS') or something similar.

Just to be sure: The AddressType is thus only Primary Home when and only when official = 'true' AND Address.use = 'home/both'?

Also: if Address.use = 'temp' and Address.type = 'physical', is the HCIM value Visit Address and Temporary Address?

view this post on Zulip Ardon Toonstra (Jan 02 2019 at 10:30):

@Yuri Bonanno , thanks for pointing out the description, and your suggestion. Perhaps I was too fast with my reply and the XML snippet is indeed incorrect to our own specifications. In my opinion, the .use.extension element is a bit redundant in the mapping for an official address, where the "extension:official" is used. We will have a closer look and get back to you.

view this post on Zulip Yuri Bonanno (Jan 02 2019 at 10:31):

Furthermore, in BITS#MM-86 I had one more question which was not answered.

HCIM Vacation Home Address maps to Address.type 'temp' + Address.use.extension 'HV'.

Address.type cannot have the value 'temp', According to Simplifier. Is this correct?

view this post on Zulip Ardon Toonstra (Jan 07 2019 at 17:36):

Hi @Yuri Bonanno ,
I replied in MM-86. It indeed concerns a AND mapping. In addition, you are correct regarding the error in the mapping description for HCIM Vacation Home Address. We fixed it!


Last updated: Apr 12 2022 at 19:14 UTC