FHIR: Nested extensions -


what correct representation of multi-level fhir extension?

<extension url="http://example.com/dataelement/researchauth">    <extension url="http://example.com/dataelement/researchauth.type">       <valuecode value="local" />    </extension>    <extension url="http://example.com/dataelement/researchauth.flag>       <valueboolean value="true" />    </extension> </extension> 

-- or --

<extension url="http://example.com/dataelement/researchauth">    <extension url="http://example.com/dataelement/researchauth#type">       <valuecode value="local" />    </extension>    <extension url="http://example.com/dataelement/researchauth#flag>       <valueboolean value="true" />    </extension> </extension> 

in structuredefinition, should url sub-extensions qualified (url: "http://example.com/dataelement/researchauth#type") or name ("type") here: http://hl7-fhir.github.io/extension-goal-relationship.html

finally, there standard linkage between structuredefinition.name , sub-extension url? i.e. part after # (type in http://example.com/dataelement/researchauth#type) should match name in structure defition of extension:

<structuredefinition>    ...       <element>          <path value="extension" />          <name value="researchauth" />       </element>       <element>          <path value="extension.extension" />          <name value="researchauth.type" />       </element>     ... </structuredefinition> 

otherwise, how 1 determine post # element is??

james's example adds confusion: http://jamesagnew.github.io/hapi-fhir/doc_extensions.html

in sub-extensions section, "parent" "http://example.com#parent" , children "http://example.com#childone" , "http://example.com#childtwo" respectively.

i expect "http://example.com" parent extension (no # it's base extension defined @ url). or http://example.com#parent.childone sub-extensions.

in dstu 1, first approach. in dstu 2, this:

<extension url="http://example.com/dataelement/researchauth">    <extension url="type">       <valuecode value="local" />    </extension>    <extension url="flag>       <valueboolean value="true" />    </extension> </extension> 

that holds children of complex extensions. if want include extension defined elsewhere inside extension, need use full url.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -