## Profile Comparison between http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature vs http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature

Left: | CDex Signature Profile (http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature)
Right: | CDex Signature Profile (http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature)

### Messages

Error | StructureDefinition.version | Values for version differ: '2.0.0' vs '2.1.0'
Information | StructureDefinition.publisher | Values for publisher differ: 'HL7 International - Patient Care Work Group' vs 'HL7 International / Payer/Provider Information Exchange Work Group'
Information | StructureDefinition.short | Values for short differ: 'base64 encoded JWS-Signature' vs 'base64 encoded signature (JWS, image, etc)'

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/StructureDefinition/Signature |
copyright | Used by permission of HL7 International all rights reserved Creative Commons License |
date | 2023-01-15 |
description | This Signature DataType profile enforces the various elements of signature documented in the CDex guide. It adds the following *mandatory* (min=1) constraints: - A Signature.type fixed to ASTM Standard, E1762-95(2013) code = “1.2.840.10065.1.12.1.5” (Verification Signature) - A Signature.who for the organization or practitioner who signed the Bundle which is either: 1. a reference to US-Core Practitioner, PractitionerRole or Organization or 1. an NPI or Tax ID and name of the organization or practitioner - A Signature.data representing base64 encoded JWS-Signature In addition, the following *mandatory* (min=1) element is inherited from the base standard: - Signature.when - system timestamp when the signature was created | This Signature DataType profile enforces the various elements of [signature](https://hl7.org/fhir/us/davinci-cdex/signatures.html) documented in the CDex guide. It adds the following *mandatory* (min=1) constraints: - A `Signature.type` fixed to ASTM Standard, E1762-95(2013) code = “1.2.840.10065.1.12.1.5” (Verification Signature) - A `Signature.who` for the organization or practitioner who signed the Bundle which is either: 1. a reference to US-Core Practitioner, US-Core PractitionerRole, or US-Core Organization or 1. an NPI or Tax ID and name of the organization or practitioner - A `Signature.data` representing the base64 encoded Signature (JWS, image, etc) In addition, the following *mandatory* (min=1) element is inherited from the base standard: - `Signature.when` - a system timestamp when the signature was created | Values Differ
experimental |  |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#US |
kind | complex-type |
name | CDexSignature |
publisher | HL7 International - Patient Care Work Group | HL7 International / Payer/Provider Information Exchange Work Group | Values Differ
purpose |  |
status | active |
title | CDex Signature Profile |
type | Signature |
url | http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature |
version | 2.0.0 | 2.1.0 | Values Differ

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Signature | C | 0..* | Signature | JWS Digital Signature cdex-13: The signature element must have either reference to the signer or the signer's identifier and name. | C | 0..* | Signature | JWS Digital Signature cdex-13: The signature element must have either reference to the signer or the signer's identifier and name. |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
Slices for type | S Σ | 1..* | Coding | Indication of the reason the entity signed the object(s) Slice: Unordered, Open by pattern:$this Binding: ?? (preferred): An indication of the reason that an entity signed the object. | S Σ | 1..* | Coding | Indication of the reason the entity signed the object(s) Slice: Unordered, Open by value:$this Binding: ?? (preferred): An indication of the reason that an entity signed the object. |
when | S Σ | 1..1 | instant | When the signature was created | S Σ | 1..1 | instant | When the signature was created |
who | S Σ | 1..1 | Reference(US Core Practitioner Profile S | US Core Organization Profile S | US Core PractitionerRole Profile) | Organization or practitioner who signed the Bundle | S Σ | 1..1 | Reference(US Core Practitioner Profile(3.1.1) S | US Core Practitioner Profile(6.1.0) S | US Core Practitioner Profile(7.0.0) S | HRex Organization Profile(1.1.0) S | HRex PractitionerRole Profile(1.1.0)) | Organization or practitioner who signed the Bundle |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | S Σ C | 0..1 | Identifier | NPI or US Tax ID | S Σ C | 0..1 | Identifier | NPI or US Tax ID |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: ?? (required): Identifies the purpose for this identifier, if known . | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: ?? (required): Identifies the purpose for this identifier, if known . |
type | S Σ | 1..1 | CodeableConcept | Description of identifier Binding: ?? (required) | S Σ | 1..1 | CodeableConcept | Description of identifier Binding: ?? (required) |
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient |
value | S Σ | 1..1 | string | The value that is unique Example General: 123456 | S Σ | 1..1 | string | The value that is unique Example General: 123456 |
period | Σ | 0..1 | Period | Time period when id is/was valid for use | Σ | 0..1 | Period | Time period when id is/was valid for use |
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) |
display | S Σ C | 0..1 | string | Text alternative for the resource | S Σ C | 0..1 | string | Text alternative for the resource |
onBehalfOf | Σ | 0..1 | Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) | The party represented | Σ | 0..1 | Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) | The party represented |
targetFormat |  | 0..1 | code | The technical format of the signed resources Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. |  | 0..1 | code | The technical format of the signed resources Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. |
sigFormat |  | 0..1 | code | The technical format of the signature Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. |  | 0..1 | code | The technical format of the signature Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. |
data | S | 1..1 | base64Binary | base64 encoded JWS-Signature | S | 1..1 | base64Binary | base64 encoded signature (JWS, image, etc) |
Documentation for this format