@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/CodeSystem/w3c-provenance-activity-type> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "w3c-provenance-activity-type"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2026-06-25T05:29:09.744+00:00"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem w3c-provenance-activity-type</b></p><a name=\"w3c-provenance-activity-type\"> </a><a name=\"hcw3c-provenance-activity-type\"> </a><p>This case-sensitive code system <code>http://hl7.org/fhir/w3c-provenance-activity-type</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">Generation<a name=\"w3c-provenance-activity-type-Generation\"> </a></td><td>wasGeneratedBy</td><td>The completion of production of a new entity by an activity. This entity did not exist before generation and becomes available for usage after this generation. Given that a generation is the completion of production of an entity, it is instantaneous.</td></tr><tr><td style=\"white-space:nowrap\">Usage<a name=\"w3c-provenance-activity-type-Usage\"> </a></td><td>used</td><td>the beginning of utilizing an entity by an activity. Before usage, the activity had not begun to utilize this entity and could not have been affected by the entity.  (Note: This definition is formulated for a given usage; it is permitted for an activity to have used a same entity multiple times.) Given that a usage is the beginning of utilizing an entity, it is instantaneous.</td></tr><tr><td style=\"white-space:nowrap\">Communication<a name=\"w3c-provenance-activity-type-Communication\"> </a></td><td>wasInformedBy</td><td>The exchange of some unspecified entity by two activities, one activity using some entity generated by the other. A communication implies that activity a2 is dependent on another activity, a1, by way of some unspecified entity that is generated by a1 and used by a2.</td></tr><tr><td style=\"white-space:nowrap\">Start<a name=\"w3c-provenance-activity-type-Start\"> </a></td><td>wasStartedBy</td><td>When an activity is deemed to have been started by an entity, known as trigger. The activity did not exist before its start. Any usage, generation, or invalidation involving an activity follows the activity's start. A start may refer to a trigger entity that set off the activity, or to an activity, known as starter, that generated the trigger. Given that a start is when an activity is deemed to have started, it is instantaneous.</td></tr><tr><td style=\"white-space:nowrap\">End<a name=\"w3c-provenance-activity-type-End\"> </a></td><td>wasEndedBy</td><td>When an activity is deemed to have been ended by an entity, known as trigger. The activity no longer exists after its end. Any usage, generation, or invalidation involving an activity precedes the activity's end. An end may refer to a trigger entity that terminated the activity, or to an activity, known as ender that generated the trigger.</td></tr><tr><td style=\"white-space:nowrap\">Invalidation<a name=\"w3c-provenance-activity-type-Invalidation\"> </a></td><td>wasInvalidatedBy</td><td>The start of the destruction, cessation, or expiry of an existing entity by an activity. The entity is no longer available for use (or further invalidation) after invalidation. Any generation or usage of an entity precedes its invalidation. Given that an invalidation is the start of destruction, cessation, or expiry, it is instantaneous.</td></tr><tr><td style=\"white-space:nowrap\">Derivation<a name=\"w3c-provenance-activity-type-Derivation\"> </a></td><td>wasDerivedFrom</td><td>A transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a pre-existing entity. For an entity to be transformed from, created from, or resulting from an update to another, there must be some underpinning activity or activities performing the necessary action(s) resulting in such a derivation. A derivation can be described at various levels of precision. In its simplest form, derivation relates two entities. Optionally, attributes can be added to represent further information about the derivation. If the derivation is the result of a single known activity, then this activity can also be optionally expressed. To provide a completely accurate description of the derivation, the generation and usage of the generated and used entities, respectively, can be provided, so as to make the derivation path, through usage, activity, and generation, explicit. Optional information such as activity, generation, and usage can be linked to derivations to aid analysis of provenance and to facilitate provenance-based reproducibility.</td></tr><tr><td style=\"white-space:nowrap\">Revision<a name=\"w3c-provenance-activity-type-Revision\"> </a></td><td>wasRevisionOf</td><td>A derivation for which the resulting entity is a revised version of some original. The implication here is that the resulting entity contains substantial content from the original. A revision relation is a kind of derivation relation from a revised entity to a preceding entity.</td></tr><tr><td style=\"white-space:nowrap\">Quotation<a name=\"w3c-provenance-activity-type-Quotation\"> </a></td><td>wasQuotedFrom</td><td>The repeat of (some or all of) an entity, such as text or image, by someone who might or might not be its original author. A quotation relation is a kind of derivation relation, for which an entity was derived from a preceding entity by copying, or 'quoting', some or all of it.</td></tr><tr><td style=\"white-space:nowrap\">Primary-Source<a name=\"w3c-provenance-activity-type-Primary-Source\"> </a></td><td>wasPrimarySourceOf</td><td>Refers to something produced by some agent with direct experience and knowledge about the topic, at the time of the topic's study, without benefit from hindsight. Because of the directness of primary sources, they 'speak for themselves' in ways that cannot be captured through the filter of secondary sources. As such, it is important for secondary sources to reference those primary sources from which they were derived, so that their reliability can be investigated. It is also important to note that a given entity might be a primary source for one entity but not another. It is the reason why Primary Source is defined as a relation as opposed to a subtype of Entity.</td></tr><tr><td style=\"white-space:nowrap\">Attribution<a name=\"w3c-provenance-activity-type-Attribution\"> </a></td><td>wasAttributedTo</td><td>Ascribing of an entity (object/document) to an agent.</td></tr><tr><td style=\"white-space:nowrap\">Collection<a name=\"w3c-provenance-activity-type-Collection\"> </a></td><td>isCollectionOf</td><td> An aggregating activity that results in composition of an entity, which provides a structure to some constituents that must themselves be entities. These constituents are said to be member of the collections.</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "sec"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/w3c-provenance-activity-type"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/w3c-provenance-activity-type>
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.4.1844" ]
  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot4"] ; # 
  fhir:name [ fhir:v "W3cProvenanceActivityType"] ; # 
  fhir:title [ fhir:v "W3c Provenance Activity Type"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2024-06-12"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / Security"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/secure" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "fhir@lists.hl7.org" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This value set includes W3C PROV Data Model Activity concepts, which are treated as codes in this valueset.  Some adaptations were made to make these concepts suitable values for the Provenance.activity element. Coded concepts are from PROV-DM and the display names are their counterparts in PROV-N (human readable notation syntax specification).[code system OID: http://www.w3.org/TR/2013/REC-prov-dm-20130430/ and http://www.w3.org/TR/2013/REC-prov-n-20130430/]"] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
         fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>
       ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:hierarchyMeaning [] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "Generation" ] ;
     fhir:display [ fhir:v "wasGeneratedBy" ] ;
     fhir:definition [ fhir:v "The completion of production of a new entity by an activity. This entity did not exist before generation and becomes available for usage after this generation. Given that a generation is the completion of production of an entity, it is instantaneous." ]
  ] [
     fhir:code [ fhir:v "Usage" ] ;
     fhir:display [ fhir:v "used" ] ;
     fhir:definition [ fhir:v "the beginning of utilizing an entity by an activity. Before usage, the activity had not begun to utilize this entity and could not have been affected by the entity.  (Note: This definition is formulated for a given usage; it is permitted for an activity to have used a same entity multiple times.) Given that a usage is the beginning of utilizing an entity, it is instantaneous." ]
  ] [
     fhir:code [ fhir:v "Communication" ] ;
     fhir:display [ fhir:v "wasInformedBy" ] ;
     fhir:definition [ fhir:v "The exchange of some unspecified entity by two activities, one activity using some entity generated by the other. A communication implies that activity a2 is dependent on another activity, a1, by way of some unspecified entity that is generated by a1 and used by a2." ]
  ] [
     fhir:code [ fhir:v "Start" ] ;
     fhir:display [ fhir:v "wasStartedBy" ] ;
     fhir:definition [ fhir:v "When an activity is deemed to have been started by an entity, known as trigger. The activity did not exist before its start. Any usage, generation, or invalidation involving an activity follows the activity's start. A start may refer to a trigger entity that set off the activity, or to an activity, known as starter, that generated the trigger. Given that a start is when an activity is deemed to have started, it is instantaneous." ]
  ] [
     fhir:code [ fhir:v "End" ] ;
     fhir:display [ fhir:v "wasEndedBy" ] ;
     fhir:definition [ fhir:v "When an activity is deemed to have been ended by an entity, known as trigger. The activity no longer exists after its end. Any usage, generation, or invalidation involving an activity precedes the activity's end. An end may refer to a trigger entity that terminated the activity, or to an activity, known as ender that generated the trigger." ]
  ] [
     fhir:code [ fhir:v "Invalidation" ] ;
     fhir:display [ fhir:v "wasInvalidatedBy" ] ;
     fhir:definition [ fhir:v "The start of the destruction, cessation, or expiry of an existing entity by an activity. The entity is no longer available for use (or further invalidation) after invalidation. Any generation or usage of an entity precedes its invalidation. Given that an invalidation is the start of destruction, cessation, or expiry, it is instantaneous." ]
  ] [
     fhir:code [ fhir:v "Derivation" ] ;
     fhir:display [ fhir:v "wasDerivedFrom" ] ;
     fhir:definition [ fhir:v "A transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a pre-existing entity. For an entity to be transformed from, created from, or resulting from an update to another, there must be some underpinning activity or activities performing the necessary action(s) resulting in such a derivation. A derivation can be described at various levels of precision. In its simplest form, derivation relates two entities. Optionally, attributes can be added to represent further information about the derivation. If the derivation is the result of a single known activity, then this activity can also be optionally expressed. To provide a completely accurate description of the derivation, the generation and usage of the generated and used entities, respectively, can be provided, so as to make the derivation path, through usage, activity, and generation, explicit. Optional information such as activity, generation, and usage can be linked to derivations to aid analysis of provenance and to facilitate provenance-based reproducibility." ]
  ] [
     fhir:code [ fhir:v "Revision" ] ;
     fhir:display [ fhir:v "wasRevisionOf" ] ;
     fhir:definition [ fhir:v "A derivation for which the resulting entity is a revised version of some original. The implication here is that the resulting entity contains substantial content from the original. A revision relation is a kind of derivation relation from a revised entity to a preceding entity." ]
  ] [
     fhir:code [ fhir:v "Quotation" ] ;
     fhir:display [ fhir:v "wasQuotedFrom" ] ;
     fhir:definition [ fhir:v "The repeat of (some or all of) an entity, such as text or image, by someone who might or might not be its original author. A quotation relation is a kind of derivation relation, for which an entity was derived from a preceding entity by copying, or 'quoting', some or all of it." ]
  ] [
     fhir:code [ fhir:v "Primary-Source" ] ;
     fhir:display [ fhir:v "wasPrimarySourceOf" ] ;
     fhir:definition [ fhir:v "Refers to something produced by some agent with direct experience and knowledge about the topic, at the time of the topic's study, without benefit from hindsight. Because of the directness of primary sources, they 'speak for themselves' in ways that cannot be captured through the filter of secondary sources. As such, it is important for secondary sources to reference those primary sources from which they were derived, so that their reliability can be investigated. It is also important to note that a given entity might be a primary source for one entity but not another. It is the reason why Primary Source is defined as a relation as opposed to a subtype of Entity." ]
  ] [
     fhir:code [ fhir:v "Attribution" ] ;
     fhir:display [ fhir:v "wasAttributedTo" ] ;
     fhir:definition [ fhir:v "Ascribing of an entity (object/document) to an agent." ]
  ] [
     fhir:code [ fhir:v "Collection" ] ;
     fhir:display [ fhir:v "isCollectionOf" ] ;
     fhir:definition [ fhir:v " An aggregating activity that results in composition of an entity, which provides a structure to some constituents that must themselves be entities. These constituents are said to be member of the collections." ]
  ] ) . # 

# -------------------------------------------------------------------------------------

