PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci-cdex@2.0.0
    http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature
description: This Signature DataType profile enforces the various elements of signature documented in the CDex guide. It adds the following *mandatory* (min=1) constraints:\n\n- A Signature.type fixed to ASTM Standard, E1762-95(2013) code = “1.2.840.10065.1.12.1.5” (Verification Signature)\n- A Signature.who for the organization or practitioner who signed the Bundle which is either:\n  1. a reference to US-Core Practitioner, PractitionerRole or Organization or\n  1. an NPI or Tax ID and name of the organization or practitioner\n- A Signature.data representing base64 encoded JWS-Signature \n\nIn addition, the following *mandatory* (min=1) element is inherited from the base standard:\n- Signature.when - system timestamp when the signature was created
package_name: hl7.fhir.us.davinci-cdex
derivation: constraint
name: CDexSignature
type: Signature
elements:
  type:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        verify:
          match: {code: 1.2.840.10065.1.12.1.5, system: 'urn:iso-astm:E1762-95:2013', display: Verification Signature}
          schema:
            short: Verification Signature
            mustSupport: true
            pattern:
              type: Coding
              value: {code: 1.2.840.10065.1.12.1.5, system: 'urn:iso-astm:E1762-95:2013', display: Verification Signature}
            _required: true
            index: 1
          min: 1
          max: 1
  when: {mustSupport: true, index: 2}
  who:
    type: Reference
    short: Organization or practitioner who signed the Bundle
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole']
    index: 3
    elements:
      reference: {mustSupport: true, index: 4}
      identifier:
        short: NPI or US Tax ID
        mustSupport: true
        index: 5
        elements:
          type:
            binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-cdex/ValueSet/cdex-identifier-types'}
            mustSupport: true
            index: 6
          value: {mustSupport: true, index: 7}
        required: [value, type]
      display: {mustSupport: true, index: 8}
  data: {short: base64 encoded JWS-Signature, mustSupport: true, index: 9}
package_version: 2.0.0
class: complex-type
kind: complex-type
url: http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature
base: http://hl7.org/fhir/StructureDefinition/Signature
version: 2.0.0
required: [type, data]