-
Couldn't load subscription status.
- Fork 354
Can now use a discriminator to walk into a complex extension (for R3) #1671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
marcovisserFurore
merged 3 commits into
develop-stu3
from
feature/1656-discriminating-complex-extensions
Mar 30, 2021
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
140 changes: 140 additions & 0 deletions
140
src/Hl7.Fhir.Specification.Tests/TestData/validation/patient-sliced-complex-extension.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,140 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <StructureDefinition xmlns="http://hl7.org/fhir"> | ||
| <id value="zib-Patient"/> | ||
| <url value="http://unittest.com/StructureDefinition/patient-sliced-complex-extension"/> | ||
| <version value="0.0.1"/> | ||
| <name value="ZibPatient"/> | ||
| <title value="zib Patient"/> | ||
| <status value="draft"/> | ||
| <experimental value="false"/> | ||
| <publisher value="Nictiz"/> | ||
| <contact> | ||
| <name value="Nictiz"/> | ||
| <telecom> | ||
| <system value="email"/> | ||
| <value value="info@nictiz.nl"/> | ||
| <use value="work"/> | ||
| </telecom> | ||
| </contact> | ||
| <description value="A person who receives medical, psychological, paramedical or nursing care. In some care settings, the term client or participant is used instead of the term patient.
Nationality is used as an indication of the country of citizenship. 
Marital status is a person’s formal position as defined by the Dutch civil code. There is a distinction between marriage and civil union."/> | ||
| <purpose value="This Patient resource represents the Dutch zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) [Patient v3.2 (2020)](https://zibs.nl/wiki/Patient-v3.2(2020EN)), [Nationality v3.0 (2020)](https://zibs.nl/wiki/Nationality-v3.0(2020EN)) and [MaritalStatus v3.1 (2020)](https://zibs.nl/wiki/MaritalStatus-v3.1(2020EN))."/> | ||
| <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise."/> | ||
| <fhirVersion value="4.0.1"/> | ||
| <mapping> | ||
| <identity value="zib-patient-v3.2-2020EN"/> | ||
| <uri value="https://zibs.nl/wiki/Patient-v3.2(2020EN)"/> | ||
| <name value="zib Patient-v3.2(2020EN)"/> | ||
| </mapping> | ||
| <mapping> | ||
| <identity value="zib-nationality-v3.0-2020EN"/> | ||
| <uri value="https://zibs.nl/wiki/Nationality-v3.0(2020EN)"/> | ||
| <name value="zib Nationality-v3.0(2020EN)"/> | ||
| </mapping> | ||
| <mapping> | ||
| <identity value="zib-maritalstatus-v3.1-2020EN"/> | ||
| <uri value="https://zibs.nl/wiki/MaritalStatus-v3.1(2020EN)"/> | ||
| <name value="zib MaritalStatus-v3.1(2020EN)"/> | ||
| </mapping> | ||
| <mapping> | ||
| <identity value="zib-languageproficiency-v3.2-2020EN"/> | ||
| <uri value="https://zibs.nl/wiki/LanguageProficiency-v3.2(2020EN)"/> | ||
| <name value="zib LanguageProficiency-v3.2(2020EN)"/> | ||
| </mapping> | ||
| <mapping> | ||
| <identity value="zib-contactinformation-v1.2-2020EN"/> | ||
| <uri value="https://zibs.nl/wiki/ContactInformation-v1.2(2020EN)"/> | ||
| <name value="zib ContactInformation-v1.2(2020EN)"/> | ||
| </mapping> | ||
| <mapping> | ||
| <identity value="zib-contactperson-v3.4-2020EN"/> | ||
| <uri value="https://zibs.nl/wiki/ContactPerson-v3.4(2020EN)"/> | ||
| <name value="zib ContactPerson-v3.4(2020EN)"/> | ||
| </mapping> | ||
| <kind value="resource"/> | ||
| <abstract value="true"/> | ||
| <type value="Patient"/> | ||
| <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> | ||
| <derivation value="constraint"/> | ||
| <differential> | ||
| <element id="Patient"> | ||
| <path value="Patient"/> | ||
| <short value="Patient"/> | ||
| <alias value="Patient"/> | ||
| <mapping> | ||
| <identity value="zib-patient-v3.2-2020EN"/> | ||
| <map value="NL-CM:0.1.1"/> | ||
| <comment value="Patient"/> | ||
| </mapping> | ||
| </element> | ||
| <element id="Patient.communication"> | ||
| <path value="Patient.communication"/> | ||
| <short value="LanguageProficiency"/> | ||
| <definition value="Root concept of the LanguageProficiency information model. This concept contains all data elements of the LanguageProficiency information model."/> | ||
| <alias value="Taalvaardigheid"/> | ||
| <mapping> | ||
| <identity value="zib-languageproficiency-v3.2-2020EN"/> | ||
| <map value="NL-CM:7.12.1"/> | ||
| <comment value="LanguageProficiency"/> | ||
| </mapping> | ||
| </element> | ||
| <element id="Patient.communication"> | ||
| <path value="Patient.communication"/> | ||
| <slicing> | ||
| <discriminator> | ||
| <type value="value"/> | ||
| <path value="extension('http://hl7.org/fhir/StructureDefinition/patient-proficiency').extension('type').value"/> | ||
| </discriminator> | ||
| <rules value="open"/> | ||
| </slicing> | ||
| </element> | ||
| <element id="Patient.communication:languageControlListening"> | ||
| <path value="Patient.communication"/> | ||
| <sliceName value="languageControlListening"/> | ||
| </element> | ||
| <element id="Patient.communication:languageControlListening.extension"> | ||
| <path value="Patient.communication.extension"/> | ||
| <sliceName value="languageControlListening-proficiency" /> | ||
| <short value="LanguageControlListening"/> | ||
| <definition value="The ability to understand spoken text in the language in question."/> | ||
| <alias value="TaalvaardigheidBegrijpen"/> | ||
| <max value="1"/> | ||
| <type> | ||
| <code value="Extension"/> | ||
| <profile value="http://hl7.org/fhir/StructureDefinition/patient-proficiency"/> | ||
| </type> | ||
| <mapping> | ||
| <identity value="zib-languageproficiency-v3.2-2020EN"/> | ||
| <map value="NL-CM:7.12.6"/> | ||
| <comment value="LanguageControlListening"/> | ||
| </mapping> | ||
| </element> | ||
| <element id="Patient.communication:languageControlListening.extension:languageControlListening-proficiency.extension:level"> | ||
| <path value="Patient.communication.extension.extension"/> | ||
| <sliceName value="level"/> | ||
| <min value="1"/> | ||
| </element> | ||
| <element id="Patient.communication:languageControlListening.extension:languageControlListening-proficiency.extension:level.value[x]"> | ||
| <path value="Patient.communication.extension.extension.value[x]"/> | ||
| <comment value="The zib ValueSet TaalvaardigheidBegrijpenCodelijst is equal to the default FHIR ValueSet."/> | ||
| <binding> | ||
| <strength value="required"/> | ||
| </binding> | ||
| </element> | ||
| <element id="Patient.communication:languageControlListening.extension:languageControlListening-proficiency.extension:type"> | ||
| <path value="Patient.communication.extension.extension"/> | ||
| <sliceName value="type"/> | ||
| <min value="1"/> | ||
| <max value="1"/> | ||
| </element> | ||
| <element id="Patient.communication:languageControlListening.extension:languageControlListening-proficiency.extension:type.value[x]"> | ||
| <path value="Patient.communication.extension.extension.value[x]"/> | ||
| <patternCoding> | ||
| <system value="http://terminology.hl7.org/CodeSystem/v3-LanguageAbilityMode"/> | ||
| <code value="RSP"/> | ||
| </patternCoding> | ||
| <binding> | ||
| <strength value="required"/> | ||
| </binding> | ||
| </element> | ||
| </differential> | ||
| </StructureDefinition> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.