PackagesCanonicalsLogsProblems
    Packages
    test.fhir@0.0.1-test
    http://StructureDefinition.hl7fhir.cn/OrganizationAffiliation
{
  "description": null,
  "_filename": "OrganizationAffiliation.json",
  "package_name": "test.fhir",
  "date": null,
  "derivation": "constraint",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-05-11T06:32:26.2557434+00:00"
  },
  "publisher": null,
  "fhirVersion": "4.0.0",
  "name": "OrganizationAffiliation",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  } ],
  "abstract": false,
  "type": "OrganizationAffiliation",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "机构关系",
  "package_version": "0.0.1-test",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If 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))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "OrganizationAffiliation",
      "min": 0,
      "definition": "两个独立的业务组织在一段时间内的关系(不是指整体与部分的关系,也不是指主从部门关系,如,帮扶医院、学科合作)。",
      "isModifier": false,
      "short": "定义两个不同组织之间的关联/关系,这不是指整体与部分的关系,也不是指主从部门关系。",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Role",
        "identity": "rim"
      } ],
      "max": "*",
      "id": "OrganizationAffiliation",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.identifier",
      "requirements": "Often, specific identities are assigned for the agent.",
      "min": 0,
      "definition": "Business identifiers that are specific to this role.",
      "isModifier": false,
      "short": "Business identifiers that are specific to this role",
      "mapping": [ {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "OrganizationAffiliation.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.active",
      "requirements": "Need to be able to mark an organization affiliation record as not to be used because it was created in error, or otherwise no longer in active use.",
      "min": 0,
      "definition": "Whether this organization affiliation record is in active use.",
      "isModifier": false,
      "short": "Whether this organization affiliation record is in active use",
      "mapping": [ {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
      "max": "1",
      "id": "OrganizationAffiliation.active",
      "comment": "If this value is false, you may refer to the period to see when the role was in active use. If there is no period specified, no inference can be made about when it was active.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "OrganizationAffiliation.active"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.period",
      "requirements": "An affiliation may be created ahead of time and only be active for a defined period of time. Once the affiliation is complete, the fact that it existed may still be required.",
      "min": 0,
      "definition": "The period during which the participatingOrganization is affiliated with the primary organization.",
      "isModifier": false,
      "short": "The period during which the participatingOrganization is affiliated with the primary organization",
      "mapping": [ {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      }, {
        "map": ".performance[@typeCode <= 'PPRF'].ActDefinitionOrEvent.effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "OrganizationAffiliation.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "OrganizationAffiliation.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.organization",
      "min": 0,
      "definition": "Organization where the role is available (primary organization/has members).",
      "isModifier": false,
      "short": "Organization where the role is available",
      "mapping": [ {
        "map": ".scoper",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://StructureDefinition.hl7fhir.cn/Organization" ]
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "normative"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
        "valueCode": "4.0.0"
      } ],
      "max": "1",
      "id": "OrganizationAffiliation.organization",
      "base": {
        "max": "1",
        "min": 0,
        "path": "OrganizationAffiliation.organization"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.participatingOrganization",
      "min": 0,
      "definition": "The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).",
      "isModifier": false,
      "short": "Organization that provides/performs the role (e.g. providing services or is a member of)",
      "mapping": [ {
        "map": ".player",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "max": "1",
      "id": "OrganizationAffiliation.participatingOrganization",
      "base": {
        "max": "1",
        "min": 0,
        "path": "OrganizationAffiliation.participatingOrganization"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.network",
      "min": 0,
      "definition": "Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).",
      "isModifier": false,
      "short": "Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "max": "*",
      "id": "OrganizationAffiliation.network",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation.network"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.code",
      "min": 0,
      "definition": "Definition of the role the participatingOrganization plays in the association.",
      "isModifier": false,
      "short": "Definition of the role the participatingOrganization plays",
      "mapping": [ {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/organization-role",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "OrganizationAffiliation"
        } ],
        "description": "The role the participating organization providing services to the primary organization."
      },
      "max": "*",
      "id": "OrganizationAffiliation.code",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.specialty",
      "min": 0,
      "definition": "Specific specialty of the participatingOrganization in the context of the role.",
      "isModifier": false,
      "short": "Specific specialty of the participatingOrganization in the context of the role",
      "mapping": [ {
        "map": ".player.HealthCareProvider[@classCode = 'PROV'].code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "OrganizationSpecialty"
        } ],
        "description": "Specific specialty associated with the participating organization."
      },
      "max": "*",
      "id": "OrganizationAffiliation.specialty",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation.specialty"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.location",
      "min": 0,
      "definition": "The location(s) at which the role occurs.",
      "isModifier": false,
      "short": "The location(s) at which the role occurs",
      "mapping": [ {
        "map": "FiveWs.where[x]",
        "identity": "w5"
      }, {
        "map": ".performance.ActDefinitionOrEvent.ServiceDeliveryLocation[@classCode = 'SDLOC']",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Location" ]
      } ],
      "max": "*",
      "id": "OrganizationAffiliation.location",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation.location"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.healthcareService",
      "min": 0,
      "definition": "Healthcare services provided through the role.",
      "isModifier": false,
      "short": "Healthcare services provided through the role",
      "mapping": [ {
        "map": ".player.QualifiedEntity[@classCode = 'QUAL'].code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/HealthcareService" ]
      } ],
      "max": "*",
      "id": "OrganizationAffiliation.healthcareService",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation.healthcareService"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.telecom",
      "requirements": "Sometimes a participating organization provides dedicated contacts to handle enquiries specifically for the role provided to the affiliated organization.",
      "min": 0,
      "definition": "Contact details at the participatingOrganization relevant to this Affiliation.",
      "isModifier": false,
      "short": "Contact details at the participatingOrganization relevant to this Affiliation",
      "mapping": [ {
        "map": ".telecom",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactPoint"
      } ],
      "max": "*",
      "id": "OrganizationAffiliation.telecom",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation.telecom"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "OrganizationAffiliation.endpoint",
      "min": 0,
      "definition": "Technical endpoints providing access to services operated for this role.",
      "isModifier": false,
      "short": "Technical endpoints providing access to services operated for this role",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Endpoint" ]
      } ],
      "max": "*",
      "id": "OrganizationAffiliation.endpoint",
      "base": {
        "max": "*",
        "min": 0,
        "path": "OrganizationAffiliation.endpoint"
      },
      "isSummary": false
    } ]
  },
  "status": "draft",
  "id": "579d053a-166a-43a8-be14-b54ea4362523",
  "kind": "resource",
  "url": "http://StructureDefinition.hl7fhir.cn/OrganizationAffiliation",
  "version": null,
  "differential": {
    "element": [ {
      "id": "OrganizationAffiliation",
      "path": "OrganizationAffiliation",
      "short": "定义两个不同组织之间的关联/关系,这不是指整体与部分的关系,也不是指主从部门关系。",
      "definition": "两个独立的业务组织在一段时间内的关系(不是指整体与部分的关系,也不是指主从部门关系,如,帮扶医院、学科合作)。"
    }, {
      "id": "OrganizationAffiliation.organization",
      "path": "OrganizationAffiliation.organization",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://StructureDefinition.hl7fhir.cn/Organization" ]
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "normative"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
        "valueCode": "4.0.0"
      } ]
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/OrganizationAffiliation"
}