PackagesCanonicalsLogsProblems
    Packages
    openehr.base@0.1.0-snapshot
    http://openehr.org/fhir/StructureDefinition/AGENT
{
  "description": "Generic concept of any kind of agent, including devices, software systems, but not humans or organisations.",
  "_filename": "StructureDefinition-AGENT.json",
  "package_name": "openehr.base",
  "date": "2025-09-06T15:35:39+10:00",
  "derivation": "specialization",
  "publisher": "openEHR + HL7",
  "fhirVersion": "5.0.0",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
    } ]
  } ],
  "name": "AGENT",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": false,
  "type": "http://openehr.org/fhir/StructureDefinition/AGENT",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": "AGENT",
  "package_version": "0.1.0-snapshot",
  "extension": [ {
    "url": "http://hl7.org/fhir/tools/StructureDefinition/web-source",
    "valueUrl": "https://specifications.openehr.org/releases/RM/development/demographic.html#_agent_class"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "fhir"
  }, {
    "url": "http://hl7.org/fhir/tools/StructureDefinition/type-operation",
    "valueCanonical": "#type"
  }, {
    "url": "http://hl7.org/fhir/tools/StructureDefinition/view-hint",
    "valueCode": "element-view-replace-cardinality"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 3,
    "_valueInteger": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical": "http://openehr.org/fhir/ImplementationGuide/openehr.base"
      } ]
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "informative",
    "_valueCode": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical": "http://openehr.org/fhir/ImplementationGuide/openehr.base"
      } ]
    }
  } ],
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "Links_valid",
        "human": "Links valid must be present",
        "source": "http://openehr.org/fhir/StructureDefinition/LOCATABLE",
        "severity": "error",
        "expression": "links.exists() implies links.empty().not()"
      }, {
        "key": "Archetyped_valid",
        "human": "Archetyped valid must satisfy exclusive conditions",
        "source": "http://openehr.org/fhir/StructureDefinition/LOCATABLE",
        "severity": "error",
        "expression": "is_archetype_root() xor archetype_details .empty()"
      }, {
        "key": "Archetype_node_id_valid",
        "human": "Archetype node id valid must not be empty",
        "source": "http://openehr.org/fhir/StructureDefinition/LOCATABLE",
        "severity": "error",
        "expression": "archetype_node_id.empty().not()"
      }, {
        "key": "Type_valid",
        "human": "Type valid",
        "source": "http://openehr.org/fhir/StructureDefinition/PARTY",
        "severity": "error",
        "expression": "type() = name"
      }, {
        "key": "Identities_valid",
        "human": "Identities valid must not be empty",
        "source": "http://openehr.org/fhir/StructureDefinition/PARTY",
        "severity": "error",
        "expression": "identities.empty().not()"
      }, {
        "key": "Contacts_valid",
        "human": "Contacts valid must be present",
        "source": "http://openehr.org/fhir/StructureDefinition/PARTY",
        "severity": "error",
        "expression": "contacts.exists() implies contacts.empty().not()"
      }, {
        "key": "Relationships_validity",
        "human": "Relationships validity must be present",
        "source": "http://openehr.org/fhir/StructureDefinition/PARTY",
        "severity": "error",
        "expression": "relationships.exists() implies (relationships.empty().not() and then relationships.for_all (r | r.source = self)"
      }, {
        "key": "Reverse_relationships_validity",
        "human": "Reverse relationships validity must be present",
        "source": "http://openehr.org/fhir/StructureDefinition/PARTY",
        "severity": "error",
        "expression": "reverse_relationships.exists() implies (reverse_relationships.empty().not() and then reverse_relationships.for_all (item | repository (\\\"demographics\\\").all_party_relationships.has_object (item) and then repository(\\\"demographics\\\").all_party_relationships.object (item).target = self))"
      }, {
        "key": "Is_archetype_root",
        "human": "Is archetype root",
        "source": "http://openehr.org/fhir/StructureDefinition/PARTY",
        "severity": "error",
        "expression": "is_archetype_root()"
      }, {
        "key": "Uid_mandatory",
        "human": "Uid mandatory must be present",
        "source": "http://openehr.org/fhir/StructureDefinition/PARTY",
        "severity": "error",
        "expression": "uid.exists()"
      }, {
        "key": "Roles_valid",
        "human": "Roles valid must be present",
        "source": "http://openehr.org/fhir/StructureDefinition/ACTOR",
        "severity": "error",
        "expression": "roles.exists() implies roles.empty().not()"
      }, {
        "key": "Legal_identity_exists",
        "human": "Legal identity exists",
        "source": "http://openehr.org/fhir/StructureDefinition/ACTOR",
        "severity": "error",
        "expression": "null # TODO: manual translation needed"
      } ],
      "path": "AGENT",
      "min": 0,
      "definition": "Generic concept of any kind of agent, including devices, software systems, but not humans or organisations.",
      "isModifier": false,
      "short": "Generic concept of any kind of agent, including devices, software systems, but not humans or organisations.",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "max": "*",
      "id": "AGENT",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Base"
      }
    }, {
      "path": "AGENT.name",
      "min": 1,
      "definition": "Runtime name of this fragment, used to build runtime paths. This is the term provided via a clinical application or batch process to name this EHR construct: its retention in the EHR faithfully preserves the original label by which this entry was known to end users.",
      "isModifier": false,
      "short": "Runtime name of this fragment, used to build runtime paths.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/DV-TEXT"
      } ],
      "max": "1",
      "id": "AGENT.name",
      "base": {
        "max": "1",
        "min": 1,
        "path": "LOCATABLE.name"
      }
    }, {
      "path": "AGENT.archetype_node_id",
      "min": 1,
      "definition": "Design-time archetype identifier of this node taken from its generating archetype; used to build archetype paths. Always in the form of an at-code, e.g.  `at0005`. This value enables a 'standardised' name for this node to be generated, by referring to the generating archetype local terminology. \n\nAt an archetype root point, the value of this attribute is always the stringified form of the `_archetype_id_` found in the `_archetype_details_` object.",
      "isModifier": false,
      "short": "Design-time archetype identifier of this node taken from its generating archetype; used to build archetype paths.",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "AGENT.archetype-node-id",
      "base": {
        "max": "1",
        "min": 1,
        "path": "LOCATABLE.archetype_node_id"
      }
    }, {
      "path": "AGENT.uid",
      "min": 0,
      "definition": "Optional globally unique object identifier for root points of archetyped structures.",
      "isModifier": false,
      "short": "Optional globally unique object identifier for root points of archetyped structures.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/UID-BASED-ID"
      } ],
      "max": "1",
      "id": "AGENT.uid",
      "base": {
        "max": "1",
        "min": 0,
        "path": "LOCATABLE.uid"
      }
    }, {
      "path": "AGENT.links",
      "min": 0,
      "definition": "Links to other archetyped structures (data whose root object inherits from `ARCHETYPED`, such as `ENTRY`, `SECTION` and so on). Links may be to structures in other compositions.",
      "isModifier": false,
      "short": "Links to other archetyped structures (data whose root object inherits from `ARCHETYPED`, such as `ENTRY`, `SECTION` and so on).",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/LINK"
      } ],
      "max": "*",
      "id": "AGENT.links",
      "base": {
        "max": "*",
        "min": 0,
        "path": "LOCATABLE.links"
      }
    }, {
      "path": "AGENT.archetype_details",
      "min": 0,
      "definition": "Details of archetyping used on this node.",
      "isModifier": false,
      "short": "Details of archetyping used on this node.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/ARCHETYPED"
      } ],
      "max": "1",
      "id": "AGENT.archetype-details",
      "base": {
        "max": "1",
        "min": 0,
        "path": "LOCATABLE.archetype_details"
      }
    }, {
      "path": "AGENT.feeder_audit",
      "min": 0,
      "definition": "Audit trail from non-openEHR system of original commit of information forming the content of this node, or from a conversion gateway which has synthesised this node.",
      "isModifier": false,
      "short": "Audit trail from non-openEHR system of original commit of information forming the content of this node, or from a conversion gateway which has synthesised this node.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/FEEDER-AUDIT"
      } ],
      "max": "1",
      "id": "AGENT.feeder-audit",
      "base": {
        "max": "1",
        "min": 0,
        "path": "LOCATABLE.feeder_audit"
      }
    }, {
      "path": "AGENT.identities",
      "min": 1,
      "definition": "Identities used by the party to identify itself, such as legal name, stage names, aliases, nicknames and so on.",
      "isModifier": false,
      "short": "Identities used by the party to identify itself, such as legal name, stage names, aliases, nicknames and so on.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/PARTY-IDENTITY"
      } ],
      "max": "*",
      "id": "AGENT.identities",
      "base": {
        "max": "*",
        "min": 1,
        "path": "PARTY.identities"
      }
    }, {
      "path": "AGENT.contacts",
      "min": 0,
      "definition": "Contacts for this party.",
      "isModifier": false,
      "short": "Contacts for this party.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/CONTACT"
      } ],
      "max": "*",
      "id": "AGENT.contacts",
      "base": {
        "max": "*",
        "min": 0,
        "path": "PARTY.contacts"
      }
    }, {
      "path": "AGENT.details",
      "min": 0,
      "definition": "All other details for this Party.",
      "isModifier": false,
      "short": "All other details for this Party.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/ITEM-STRUCTURE"
      } ],
      "max": "1",
      "id": "AGENT.details",
      "base": {
        "max": "1",
        "min": 0,
        "path": "PARTY.details"
      }
    }, {
      "path": "AGENT.reverse_relationships",
      "min": 0,
      "definition": "References to relationships in which this Party takes part as target.",
      "isModifier": false,
      "short": "References to relationships in which this Party takes part as target.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/LOCATABLE-REF"
      } ],
      "max": "*",
      "id": "AGENT.reverse-relationships",
      "base": {
        "max": "*",
        "min": 0,
        "path": "PARTY.reverse_relationships"
      }
    }, {
      "path": "AGENT.relationships",
      "min": 0,
      "definition": "Relationships in which this Party takes part as source.",
      "isModifier": false,
      "short": "Relationships in which this Party takes part as source.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/PARTY-RELATIONSHIP"
      } ],
      "max": "*",
      "id": "AGENT.relationships",
      "base": {
        "max": "*",
        "min": 0,
        "path": "PARTY.relationships"
      }
    }, {
      "path": "AGENT.languages",
      "min": 0,
      "definition": "Languages which can be used to communicate with this actor, in preferred order of use (if known, else order irrelevant).",
      "isModifier": false,
      "short": "Languages which can be used to communicate with this actor, in preferred order of use (if known, else order irrelevant).",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/DV-TEXT"
      } ],
      "max": "*",
      "id": "AGENT.languages",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ACTOR.languages"
      }
    }, {
      "path": "AGENT.roles",
      "min": 0,
      "definition": "Identifiers of the Version container for each Role played by this Party.",
      "isModifier": false,
      "short": "Identifiers of the Version container for each Role played by this Party.",
      "type": [ {
        "code": "http://openehr.org/fhir/StructureDefinition/PARTY-REF"
      } ],
      "max": "*",
      "id": "AGENT.roles",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ACTOR.roles"
      }
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString": "0.1.0-snapshot"
    } ]
  },
  "status": "active",
  "id": "761a6e4d-0c96-4c58-a364-e1e9eb69b8a3",
  "kind": "logical",
  "url": "http://openehr.org/fhir/StructureDefinition/AGENT",
  "version": "0.1.0-snapshot",
  "differential": {
    "element": [ {
      "id": "AGENT",
      "max": "*",
      "min": 0,
      "path": "AGENT",
      "short": "Generic concept of any kind of agent, including devices, software systems, but not humans or organisations.",
      "definition": "Generic concept of any kind of agent, including devices, software systems, but not humans or organisations.",
      "isModifier": false
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://www.openehr.org",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://openehr.org/fhir/StructureDefinition/ACTOR"
}