Extension: Example and/or explanation of its utilisation

Hi,

I’m new here, so if i make something wrong please tell me how to do!
I’m currently working on a mapping between FHIR and another internal medical data protocol. For this purpose i need to understand the utilisation of some extension like birthplace, nationality and other! I’m not sure i understand correctly with documentation provided on the fhir documentation website. In fact i would like some example to be sure i understand clearly the utilization of such extension to be able to map them correctly.
So my question is: Do you know where i can find examples for extension use, particularly for these two extension cited previously? If not can you tell me if this utilization would be correct:

> <Patient>
> .
> .
> .
> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/StructureDefinition/patient-nationality" >
>  <extension url="code">
>   <ValueCodeableConcept>
>    <CodeableConcept>
>     <Coding>
>       <system value="?????">
>       <code value="Bel">
>     </Coding>
>     <text>Belgian</text>
>    </CodeableConcept>
>   </valueCodeableConcept>
>  </extension>
> </extension>

> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/StructureDefinition/birthPlace" >
>  <valueAddress>
> <address>
>     <type value="both"/>
>     <line value="534 Erewhon St"/>
>     <city value="PleasantVille"/>
>     <district value="Rainbow"/>
>     <state value="Vic"/>
>     <postalCode value="3999"/>
>     <period>
>       <start value="1974-12-25"/>
>     </period>
>   </address>
>  </valueAddress>

> .
> .
> .
> </Patient>

Many thanks in advance for your help!

Antoine W

The schema would probably help you with this. However, the syntax would be:

<Patient xmlns="http://hl7.org/fhir">
  ...
  <extension url="http://hl7.org/fhir/StructureDefinition/patient-nationality">
    <valueCodeableConcept>
      <coding>
        <!-- You don't have to use 3166, but if you're not sure, it's probably the most recognized -->
        <system value="urn:iso:std:iso:3166">
        <code value="BE">
      </coding>
      <text>Belgian</text>
    </valueCodeableConcept>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/birthPlace">
    <valueAddress>
      <type value="both"/>
      <line value="534 Erewhon St"/>
      <city value="PleasantVille"/>
      <district value="Rainbow"/>
      <state value="Vic"/>
      <postalCode value="3999"/>
      <period>
        <start value="1974-12-25"/>
      </period>
    </valueAddress>
  </extension>
  ...
</Patient>

Perfect, this is clear now! Thanks for your help!