FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/ch-ext-epr-confidentialitycode

Packagech.fhir.ig.ch-core
Resource TypeStructureDefinition
Idch-ext-epr-confidentialitycode
FHIR VersionR4
Sourcehttp://fhir.ch/ig/ch-core/https://build.fhir.org/ig/hl7ch/ch-core/StructureDefinition-ch-ext-epr-confidentialitycode.html
URLhttp://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode
Version6.0.0-ci-build
Statusactive
Date2025-05-22T06:27:11+00:00
NameEPRConfidentialityCode
TitleEPR Confidentiality Code
Realmch
Authorityhl7
DescriptionExtension for the confidentiality code according to the Swiss EPR regulation
CopyrightCC0-1.0
TypeExtension
Kindcomplex-type

Resources that use this resource

StructureDefinition
ch-core-composition-eprCH Core Composition EPR

Resources that this resource uses

ValueSet
DocumentEntry.confidentialityCodeDocumentEntry.confidentialityCode

Examples of Use for Extension

ResourceVersion
Bundle/1-1-ImmunizationAdministrationR4
Bundle/1-1-MedicationTreatmentPlanR4
Bundle/1-2-MedicationDispenseR4
Bundle/1-3-VaccinationRecordR4
Bundle/1-EinsatzprotokollR4
Bundle/1-ZuweisungZurRadiologischenDiagnostik-FHIRR4
Bundle/1b-EinsatzprotokollR4
Bundle/2-1-MedicationListR4
Bundle/2-2-PharmaceuticalAdviceR4
Bundle/2-3-MedicationTreatmentPlanR4
Bundle/2-4-MedicationDispenseR4
Bundle/2-5-MedicationTreatmentPlanR4
Bundle/2-6-MedicationPrescriptionR4
Bundle/2-7-MedicationCardR4
Bundle/2-7-MedicationCard-UUIDfullUrlR4
Bundle/2-EinsatzprotokollR4
Bundle/2-ResourceCrossReferencesDokumentR4
Bundle/2b-EinsatzprotokollR4
Bundle/3-1-MedicationDispenseR4
Bundle/3-2-MedicationDispenseR4
Bundle/A-D1-P-C1R4
Bundle/A-D2-HCP1-C1R4
Bundle/A-D3-HCP2-C2R4
Bundle/A-D4-HCP2-C2R4
Bundle/A-D5-P-C1R4
Bundle/A-D6-HCP1-C1R4
Bundle/B-D1-HCP1-C1R4
Bundle/B-D2-HCP1-C1R4
Bundle/B-D3-HCP1-C1R4
Bundle/B-D4-HCP1-C1R4
Bundle/B-D5-HCP1-C1R4
Bundle/B-D6-HCP1-C1R4
Bundle/BundlePml1R4
Bundle/BundlePmlc1R4
Bundle/BundleUtc1PmlR4
Bundle/BundleUtc6bPmlR4
Bundle/C-D1-P-C1R4
Bundle/C-D2-HCP1-C1R4
Bundle/C-D3-HCP1-C1R4
Bundle/C-D4-HCP2-C2R4
Bundle/C-D5-HCP1-C1R4
Bundle/C-D6-P-C1R4
Bundle/C-D7-HCP1-C1R4
Bundle/D-D1-HCP1-C1R4
Bundle/D-D2-HCP2-C2R4
Bundle/D-D3-HCP1-C1R4
Bundle/D-D4-HCP2-C2R4
Bundle/D-D5-HCP1-C1R4
Bundle/D-D6-HCP2-C2R4
Bundle/D-D7-HCP3-C1R4
Bundle/DocumentContainingOriginalRepresentationAsPdfAR4
Bundle/DocumentDis1R4
Bundle/DocumentMtp1R4
Bundle/DocumentMtpParacetamolCARAPMP004R4
Bundle/DocumentMtpParacetamolDafalganCARAPMP004R4
Bundle/DocumentPadv1R4
Bundle/DocumentPadv2R4
Bundle/DocumentPadvCancelParacetamolCARAPMP004R4
Bundle/DocumentPadvChangeParacetamolCARAPMP004R4
Bundle/DocumentPmlcCARAPMP004AxapharmParacetamolR4
Bundle/DocumentPmlcCARAPMP004DafalganEffParacetamolR4
Bundle/DocumentPre1R4
Bundle/DocumentPreParacetamolAxapharmCARAPMP004R4
Bundle/DocumentPreParacetamolDafalganCARAPMP004R4
Bundle/E-D1-HCP1-C1R4
Bundle/E-D2-HCP1-C1R4
Bundle/F-D1-HCP1-C1R4
Bundle/F-D2-HCP1-C1R4
Bundle/F-D3-HCP1-C1R4
Bundle/F-D4-HCP1-C1R4
Bundle/F-D5-HCP1-C1R4
Bundle/F-D6-HCP1-C1R4
Bundle/PharmaceuticalAdvice-ChangeDosageR4
Bundle/RDA01R4
Bundle/RDA01bR4
Bundle/RDA02R4
Bundle/RDA02bR4
Bundle/RDA03R4
Bundle/RDA03bR4
Bundle/RDA04R4
Bundle/RDA04bR4
Bundle/RDB01R4
Bundle/RDB01bR4
Bundle/RDB02R4
Bundle/RDB02bR4
Bundle/RDB03R4
Bundle/RDB03bR4
Bundle/RDB04R4
Bundle/RDB04bR4
Bundle/RDB05R4
Bundle/RDB05bR4
Bundle/RDC01R4
Bundle/RDC01bR4
Bundle/RDC02R4
Bundle/RDC02bR4
Bundle/RDC03R4
Bundle/RDC03bR4
Bundle/RDC04R4
Bundle/RDC04bR4
Bundle/RDC05R4
Bundle/RDC05bR4
Bundle/RDD01R4
Bundle/RDD01bR4
Bundle/RDD02R4
Bundle/RDD02bR4
Bundle/RDD03R4
Bundle/RDD03bR4
Bundle/RDE01R4
Bundle/RDE01bR4
Bundle/RDF01R4
Bundle/RDF01bR4
Bundle/RDF02R4
Bundle/RDF02bR4
Bundle/RDF03R4
Bundle/RDF03bR4
Bundle/UC1-DocumentR4
Bundle/UC1-SwissIpsDocument1R4
Bundle/UC1-SwissIpsDocument2R4
Bundle/UC2-DocumentR4
Bundle/ch-allergyintolerance-document-exampleR4
Bundle/chmed20af-card-bundle-s01R4
Bundle/chmed20af-pre-bundle-s01R4
Composition/1-1-CompositionR4
Composition/1-2-CompositionR4
Composition/1-Einsatzprotokoll-CompositionR4
Composition/1b-Einsatzprotokoll-CompositionR4
Composition/2-1-CompositionR4
Composition/2-1-ImmunizationAdministrationCompositionR4
Composition/2-2-CompositionR4
Composition/2-3-CompositionR4
Composition/2-3-VaccinationRecordCompositionR4
Composition/2-4-CompositionR4
Composition/2-5-CompositionR4
Composition/2-6-CompositionR4
Composition/2-7-CompositionR4
Composition/2-Einsatzprotokoll-CompositionR4
Composition/2b-Einsatzprotokoll-CompositionR4
Composition/3-1-CompositionR4
Composition/3-2-CompositionR4
Composition/A-D1-P-C1-CompositionR4
Composition/A-D2-HCP1-C1-CompositionR4
Composition/A-D3-HCP2-C2-CompositionR4
Composition/A-D4-HCP2-C2-CompositionR4
Composition/A-D5-P-C1-CompositionR4
Composition/A-D6-HCP1-C1-CompositionR4
Composition/AllergyIntoleranceCompositionR4
Composition/B-D1-HCP1-C1-CompositionR4
Composition/B-D2-HCP1-C1-CompositionR4
Composition/B-D3-HCP1-C1-CompositionR4
Composition/B-D4-HCP1-C1-CompositionR4
Composition/B-D5-HCP1-C1-CompositionR4
Composition/B-D6-HCP1-C1-CompositionR4
Composition/C-D1-P-C1-CompositionR4
Composition/C-D2-HCP1-C1-CompositionR4
Composition/C-D3-HCP1-C1-CompositionR4
Composition/C-D4-HCP2-C2-CompositionR4
Composition/C-D5-HCP1-C1-CompositionR4
Composition/C-D6-P-C1-CompositionR4
Composition/C-D7-HCP1-C1-CompositionR4
Composition/Comp-ChangeDosageR4
Composition/CompositionPmlcParacetamolAxapharmCARAPMP004R4
Composition/CompositionPmlcParacetamolDafalganEffCARAPMP004R4
Composition/D-D1-HCP1-C1-CompositionR4
Composition/D-D2-HCP2-C2-CompositionR4
Composition/D-D3-HCP1-C1-CompositionR4
Composition/D-D4-HCP2-C2-CompositionR4
Composition/D-D5-HCP1-C1-CompositionR4
Composition/D-D6-HCP2-C2-CompositionR4
Composition/D-D7-HCP3-C1-CompositionR4
Composition/E-D1-HCP1-C1-CompositionR4
Composition/E-D2-HCP1-C1-CompositionR4
Composition/F-D1-HCP1-C1-CompositionR4
Composition/F-D2-HCP1-C1-CompositionR4
Composition/F-D3-HCP1-C1-CompositionR4
Composition/F-D4-HCP1-C1-CompositionR4
Composition/F-D5-HCP1-C1-CompositionR4
Composition/F-D6-HCP1-C1-CompositionR4
Composition/Inline-composition-for-utc-1-pmlR4
Composition/Inline-composition-for-utc-6b-pmlR4
Composition/RDA01-CompositionR4
Composition/RDA01-Composition-bR4
Composition/RDA02-CompositionR4
Composition/RDA02-Composition-bR4
Composition/RDA03-CompositionR4
Composition/RDA03-Composition-bR4
Composition/RDA04-CompositionR4
Composition/RDA04-Composition-bR4
Composition/RDB01-CompositionR4
Composition/RDB01-Composition-bR4
Composition/RDB02-CompositionR4
Composition/RDB02-Composition-bR4
Composition/RDB03-CompositionR4
Composition/RDB03-Composition-bR4
Composition/RDB04-CompositionR4
Composition/RDB04-Composition-bR4
Composition/RDB05-CompositionR4
Composition/RDB05-Composition-bR4
Composition/RDC01-CompositionR4
Composition/RDC01-Composition-bR4
Composition/RDC02-CompositionR4
Composition/RDC02-Composition-bR4
Composition/RDC03-CompositionR4
Composition/RDC03-Composition-bR4
Composition/RDC04-CompositionR4
Composition/RDC04-Composition-bR4
Composition/RDC05-CompositionR4
Composition/RDC05-Composition-bR4
Composition/RDD01-CompositionR4
Composition/RDD01-Composition-bR4
Composition/RDD02-CompositionR4
Composition/RDD02-Composition-bR4
Composition/RDD03-CompositionR4
Composition/RDD03-Composition-bR4
Composition/RDE01-CompositionR4
Composition/RDE01-Composition-bR4
Composition/RDF01-CompositionR4
Composition/RDF01-Composition-bR4
Composition/RDF02-CompositionR4
Composition/RDF02-Composition-bR4
Composition/RDF03-CompositionR4
Composition/RDF03-Composition-bR4
Composition/ResourceCrossReferencesDokumentCompositionR4
Composition/UC1-CompositionR4
Composition/UC1-Composition1R4
Composition/ZuweisungZurRadiologischenDiagnostikR4
Composition/ch-allergyintolerance-composition-exampleR4
Composition/chmed20af-card-composition-s01R4
Composition/chmed20af-pre-composition-s01R4

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition ch-ext-epr-confidentialitycode

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionExtension
... extension 0..0
... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode"
... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Open by type:$this
.... value[x]:valueCodeableConcept 1..1CodeableConceptValue of extension
Binding: DocumentEntry.confidentialityCode (extensible)
..... coding 1..1CodingCode defined by a terminology system
...... system 1..1uriIdentity of the terminology system
...... code 1..1codeSymbol in syntax defined by the system

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "ch-ext-epr-confidentialitycode",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode",
  "version": "6.0.0-ci-build",
  "name": "EPRConfidentialityCode",
  "title": "EPR Confidentiality Code",
  "status": "active",
  "date": "2025-05-22T06:27:11+00:00",
  "publisher": "HL7 Switzerland",
  "contact": [
    {
      "name": "HL7 Switzerland",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.hl7.ch/"
        }
      ]
    },
    {
      "name": "HL7 Switzerland",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.hl7.ch/",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Extension for the confidentiality code according to the Swiss EPR regulation",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "CH"
        }
      ]
    }
  ],
  "copyright": "CC0-1.0",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Composition.confidentiality"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Extension",
        "definition": "Extension to define the confidentiality code of the document",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Extension",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false
      },
      {
        "id": "Extension.id",
        "path": "Extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode",
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "closed"
        },
        "short": "Value of extension",
        "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept",
        "path": "Extension.value[x]",
        "sliceName": "valueCodeableConcept",
        "short": "Value of extension",
        "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.confidentialityCode"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.id",
        "path": "Extension.value[x].id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.extension",
        "path": "Extension.value[x].extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding",
        "path": "Extension.value[x].coding",
        "short": "Code defined by a terminology system",
        "definition": "A reference to a code defined by a terminology system.",
        "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
        "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CodeableConcept.coding",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1-8, C*E.10-22"
          },
          {
            "identity": "rim",
            "map": "union(., ./translation)"
          },
          {
            "identity": "orim",
            "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.id",
        "path": "Extension.value[x].coding.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.extension",
        "path": "Extension.value[x].coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.system",
        "path": "Extension.value[x].coding.system",
        "short": "Identity of the terminology system",
        "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
        "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
        "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Coding.system",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.3"
          },
          {
            "identity": "rim",
            "map": "./codeSystem"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.version",
        "path": "Extension.value[x].coding.version",
        "short": "Version of the system - if relevant",
        "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
        "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Coding.version",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.7"
          },
          {
            "identity": "rim",
            "map": "./codeSystemVersion"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.code",
        "path": "Extension.value[x].coding.code",
        "short": "Symbol in syntax defined by the system",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
        "requirements": "Need to refer to a particular code in the system.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Coding.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1"
          },
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Extension.value[x].coding.display",
        "short": "Representation defined by the system",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
        "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Coding.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.2 - but note this is not well followed"
          },
          {
            "identity": "rim",
            "map": "CV.displayName"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.userSelected",
        "path": "Extension.value[x].coding.userSelected",
        "short": "If this coding was chosen directly by the user",
        "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
        "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
        "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Coding.userSelected",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "Sometimes implied by being first"
          },
          {
            "identity": "rim",
            "map": "CD.codingRationale"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Extension.value[x].text",
        "short": "Plain text representation of the concept",
        "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
        "comment": "Very often the text is the same as a displayName of one of the codings.",
        "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CodeableConcept.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity": "rim",
            "map": "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity": "orim",
            "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "definition": "Extension to define the confidentiality code of the document"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept",
        "path": "Extension.value[x]",
        "sliceName": "valueCodeableConcept",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.confidentialityCode"
        }
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding",
        "path": "Extension.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.system",
        "path": "Extension.value[x].coding.system",
        "min": 1
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept.coding.code",
        "path": "Extension.value[x].coding.code",
        "min": 1
      }
    ]
  }
}