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

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

### Messages

Error | StructureDefinition.url | Values for url differ: 'http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature' vs 'http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-digital-signature'
Error | StructureDefinition.version | Values for version differ: '2.0.0' vs '2.1.0'
Information | StructureDefinition.name | Values for name differ: 'CDexSignature' vs 'CDexDigitalSignature'
Information | StructureDefinition.title | Values for title differ: 'CDex Signature Profile' vs 'CDex Digital Signature Profile'
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: 'JWS Digital Signature' vs 'CDex Bundle and QuestionnaireResponse signature'
Information | StructureDefinition.definition | Values for definition differ: 'A JWS digital signature along with supporting context.' vs 'A JWS digital signature along with supporting context. This Signature DataType profile enforces the various elements of digital signatures documented in Digital Signature Rules and Guidance For CDEX Bundle and QuestionnaireResponse](https://hl7.org/fhir/us/davinci-cdex/signatures.html#digital-signature-rules-and-guidance-for-cdex-bundle-and-questionnaireresponse).'
Warning | Signature.who.reference | Elements differ in definition for mustSupport: 'true' vs 'false'
Information | Signature.who.identifier | Element minimum cardinalities differ: '0' vs '1'
Warning | Signature.who.identifier.type | Elements differ in definition for mustSupport: 'true' vs 'false'
Information | Signature.who.identifier.type | Element minimum cardinalities differ: '1' vs '0'
Warning | Signature.who.identifier.system | Elements differ in definition for mustSupport: 'false' vs 'true'
Warning | Signature.who.display | Elements differ in definition for mustSupport: 'true' vs 'false'
Information | StructureDefinition.short | Values for short differ: 'The technical format of the signed resources' vs 'Canonicalization method'
Warning | Signature.targetFormat | Elements differ in definition for mustSupport: 'false' vs 'true'
Information | Signature.targetFormat | Element minimum cardinalities differ: '0' vs '1'
Information | StructureDefinition.short | Values for short differ: 'The technical format of the signature' vs 'The JWS mime type'
Warning | Signature.sigFormat | Elements differ in definition for mustSupport: 'false' vs 'true'
Information | Signature.sigFormat | Element minimum cardinalities differ: '0' vs '1'
Information | StructureDefinition.short | Values for short differ: 'base64 encoded JWS-Signature' vs 'base64 encoded JSON Web Signature (JWS)'

### 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 digital signatures documented in [Digital Signature Rules and Guidance For CDEX Bundle and QuestionnaireResponse](https://hl7.org/fhir/us/davinci-cdex/signatures.html#digital-signature-rules-and-guidance-for-cdex-bundle-and-questionnaireresponse). | Values Differ
experimental |  |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#US |
kind | complex-type |
name | CDexSignature | CDexDigitalSignature | Values Differ
publisher | HL7 International - Patient Care Work Group | HL7 International / Payer/Provider Information Exchange Work Group | Values Differ
purpose |  |
status | active |
title | CDex Signature Profile | CDex Digital Signature Profile | Values Differ
type | Signature |
url | http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-signature | http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-digital-signature | Values Differ
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 Constraints: cdex-13 |  | 0..* | Signature | CDex Bundle and QuestionnaireResponse signature |
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 | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL | Elements differ in definition for mustSupport: 'true' vs 'false'
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 Σ | 1..1 | Identifier | NPI or US Tax ID | Element minimum cardinalities differ: '0' vs '1'
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) | Σ | 0..1 | CodeableConcept | Description of identifier Binding: ?? (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | Elements differ in definition for mustSupport: 'true' vs 'false' Element minimum cardinalities differ: '1' vs '0'
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | Elements differ in definition for mustSupport: 'false' vs 'true'
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 | Σ | 0..1 | string | Text alternative for the resource | Elements differ in definition for mustSupport: 'true' vs 'false'
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. | S | 1..1 | code | Canonicalization method Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. Fixed Value: application/fhir+json;canonicalization=http://hl7.org/fhir/canonicalization/json#document | Elements differ in definition for mustSupport: 'false' vs 'true' Element minimum cardinalities differ: '0' vs '1'
sigFormat |  | 0..1 | code | The technical format of the signature Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. | S | 1..1 | code | The JWS mime type Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. Fixed Value: application/jose | Elements differ in definition for mustSupport: 'false' vs 'true' Element minimum cardinalities differ: '0' vs '1'
data | S | 1..1 | base64Binary | base64 encoded JWS-Signature | S | 1..1 | base64Binary | base64 encoded JSON Web Signature (JWS) |
Documentation for this format