STU 2 Ballot

This page is part of the Data Access Framework (v1.6.0: STU 2 Ballot 1) based on FHIR v1.6.0. . For a full list of available versions, see the Directory of published versions

D.4.1 StructureDefinition: DAF-provenance

The official URL for this profile is:

http://hl7.org/fhir/us/daf/StructureDefinition/daf-provenance

This profile was published on Thu Aug 21 00:00:00 AEST 2014 as a draft by Health Level Seven International (Infrastructure and Messaging - Data Access Framework).

D.4.1.1 Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Provenance

Summary

Mandatory: 4 elements
Must-Support: 5 elements

NameFlagsCard.TypeDescription & Constraintsdoco
.. Provenance I0..*Who, What, When for a set of resources
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
... id 0..1idLogical id of this artifact
... meta 0..1MetaMetadata about the resource
... implicitRules ?!0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... target S1..*Reference(Resource)Target Reference(s) (usually version specific)
... period 0..1PeriodWhen the activity occurred
... recorded S1..1instantWhen the activity was recorded / updated
... reason 0..*CodingReason the activity is occurring
Binding: PurposeOfUse (extensible)
... activity 0..1CodingActivity that occurred
Binding: ProvenanceEventCurrentState (extensible)
... location 0..1Reference(Location)Where the activity occurred, if relevant
... policy 0..*uriPolicy or plan the activity was defined by
... agent S1..*BackboneElementActor involved
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... role S1..1CodingWhat the agents involvement was
Binding: ProvenanceParticipantRole (extensible)
.... actor S0..1Reference(Practitioner | RelatedPerson | Patient | Device | Organization)Individual, device or organization playing role
.... userId 0..1IdentifierAuthorization-system identifier for the agent
.... relatedAgent 0..*BackboneElementTrack delegation between agents
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
..... type 1..1CodeableConceptType of relationship between agents
Binding: v3 Code System RoleLinkType (example)
..... target 1..1uriReference to other agent in this resource by identifier
... entity 0..*BackboneElementAn entity used in this activity
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... role 1..1codederivation | revision | quotation | source | removal
Binding: ProvenanceEntityRole (required)
.... type 1..1CodingThe type of resource in this entity
Binding: ResourceType (extensible)
.... reference 1..1uriIdentity of entity
.... display 0..1stringHuman description of entity
.... agent 0..*Unknown reference to #Provenance:dafprovenance.agent
Entity is attributed to this agent
... signature 0..*SignatureSignature on target

doco Documentation for this format

yet to be done: Xml template

yet to be done: Json template

This structure is derived from Provenance.

Summary

Mandatory: 4 elements
Must-Support: 5 elements

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Provenance I0..*Who, What, When for a set of resources
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
... id 0..1idLogical id of this artifact
... meta 0..1MetaMetadata about the resource
... implicitRules ?!0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... target S1..*Reference(Resource)Target Reference(s) (usually version specific)
... period 0..1PeriodWhen the activity occurred
... recorded S1..1instantWhen the activity was recorded / updated
... reason 0..*CodingReason the activity is occurring
Binding: PurposeOfUse (extensible)
... activity 0..1CodingActivity that occurred
Binding: ProvenanceEventCurrentState (extensible)
... location 0..1Reference(Location)Where the activity occurred, if relevant
... policy 0..*uriPolicy or plan the activity was defined by
... agent S1..*BackboneElementActor involved
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... role S1..1CodingWhat the agents involvement was
Binding: ProvenanceParticipantRole (extensible)
.... actor S0..1Reference(Practitioner | RelatedPerson | Patient | Device | Organization)Individual, device or organization playing role
.... userId 0..1IdentifierAuthorization-system identifier for the agent
.... relatedAgent 0..*BackboneElementTrack delegation between agents
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
..... type 1..1CodeableConceptType of relationship between agents
Binding: v3 Code System RoleLinkType (example)
..... target 1..1uriReference to other agent in this resource by identifier
... entity 0..*BackboneElementAn entity used in this activity
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... role 1..1codederivation | revision | quotation | source | removal
Binding: ProvenanceEntityRole (required)
.... type 1..1CodingThe type of resource in this entity
Binding: ResourceType (extensible)
.... reference 1..1uriIdentity of entity
.... display 0..1stringHuman description of entity
.... agent 0..*Unknown reference to #Provenance:dafprovenance.agent
Entity is attributed to this agent
... signature 0..*SignatureSignature on target

doco Documentation for this format

XML Template

yet to be done: Xml template

JSON Template

yet to be done: Json template

 

D.4.1.2 Terminology Bindings

Terminology Bindings

PathNameConformanceValueSet
Provenance.languageCommon LanguagesextensibleCommon Languages
Provenance.reasonPurposeOfUseextensiblePurposeOfUse
Provenance.activityProvenanceEventCurrentStateextensibleProvenanceEventCurrentState
Provenance.agent.roleProvenanceParticipantRoleextensibleProvenanceParticipantRole
Provenance.agent.relatedAgent.typev3 Code System RoleLinkTypeexamplev3 Code System RoleLinkType
Provenance.entity.roleProvenanceEntityRolerequiredProvenanceEntityRole
Provenance.entity.typeResourceTypeextensibleResourceType

D.4.1.3 Constraints

Constraints

IdPathDetailsRequirements
dom-2ProvenanceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
XPath: not(parent::f:contained and f:contained)
dom-1ProvenanceIf the resource is contained in another resource, it SHALL NOT contain any narrative
XPath: not(parent::f:contained and f:text)
dom-4ProvenanceIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
XPath: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
dom-3ProvenanceIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
XPath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))
.