PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.ecr@0.2.0
    http://hl7.org/fhir/us/ecr/StructureDefinition/rr-responsible-agency
{
  "description": "The Responsible Agency profile is based on the US Core Organization and sets the type to 'Responsible Agency'. A Responsible Agency is a PHA to which reporting is legally required. This represents the PHA for the location in which care was provided and/or where the patient lives.",
  "_filename": "StructureDefinition-rr-responsible-agency.json",
  "package_name": "hl7.fhir.us.ecr",
  "date": "2018-08-01T00:00:00+10:00",
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "3.0.1",
  "jurisdiction": [ {
    "coding": [ {
      "code": "US",
      "system": "urn:iso:std:iso:3166",
      "display": "United States of America"
    } ]
  } ],
  "name": "rr-responsible-agency",
  "mapping": [ {
    "uri": "http://www.omg.org/spec/ServD/1.0/",
    "name": "ServD",
    "identity": "servd"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/w5",
    "name": "W5 Mapping",
    "identity": "w5"
  } ],
  "abstract": false,
  "type": "Organization",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "Responsible Agency",
  "package_version": "0.2.0",
  "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": "DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-1",
        "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
        "xpath": "not(parent::f:contained and f:text)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.text.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": "DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-3",
        "human": "If 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))]))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()"
      }, {
        "key": "org-1",
        "human": "The organization SHALL at least have a name or an id, and possibly more than one",
        "xpath": "count(f:identifier | f:name) > 0",
        "source": "Organization",
        "severity": "error",
        "expression": "(identifier.count() + name.count()) > 0"
      } ],
      "path": "Organization",
      "min": 1,
      "definition": "The Responsible Agency profile is based on the US Core Organization and sets the type to 'Responsible Agency'. A Responsible Agency is a PHA to which reporting is legally required. This represents the PHA for the location in which care was provided and/or where the patient lives.",
      "short": "Responsible Agency",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "(also see master files messages)",
        "identity": "v2"
      }, {
        "map": "Organization(classCode=ORG, determinerCode=INST)",
        "identity": "rim"
      }, {
        "map": "Organization",
        "identity": "servd"
      }, {
        "map": "administrative.group",
        "identity": "w5"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Organization",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization"
      }
    }, {
      "path": "Organization.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "id"
      } ],
      "max": "1",
      "id": "Organization.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "path": "Organization.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Organization.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "Organization.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Organization.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isSummary": true
    }, {
      "path": "Organization.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueReference": {
            "reference": "http://hl7.org/fhir/ValueSet/all-languages"
          }
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      "max": "1",
      "id": "Organization.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      }
    }, {
      "path": "Organization.text",
      "min": 0,
      "definition": "Description of the Responsible Agency",
      "short": "Repsponsible Agency Description",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "mustSupport": true,
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Organization.text",
      "condition": [ "dom-1" ],
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      }
    }, {
      "path": "Organization.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Organization.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      }
    }, {
      "path": "Organization.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Organization.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "path": "Organization.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Organization.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      }
    }, {
      "path": "Organization.identifier",
      "requirements": "Organizations are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the organization.",
      "min": 1,
      "definition": "Identifier for the organization that is used to identify the organization across multiple disparate systems.",
      "short": "Responsible Agency Id",
      "mapping": [ {
        "map": "XON.10 / XON.3",
        "identity": "v2"
      }, {
        "map": ".scopes[Role](classCode=IDENT)",
        "identity": "rim"
      }, {
        "map": "./Identifiers",
        "identity": "servd"
      }, {
        "map": "id",
        "identity": "w5"
      }, {
        "map": "n/a",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Organization.identifier",
      "condition": [ "org-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization.identifier"
      },
      "isSummary": true
    }, {
      "path": "Organization.identifier.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Organization.identifier.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Organization.identifier.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Organization.identifier.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Organization.identifier.use",
      "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
      "min": 0,
      "definition": "The purpose of this identifier.",
      "isModifier": true,
      "short": "usual | official | temp | secondary (If known)",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Role.code or implied by context",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "IdentifierUse"
        } ],
        "description": "Identifies the purpose for this identifier, if known .",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      "max": "1",
      "id": "Organization.identifier.use",
      "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.use"
      },
      "isSummary": true
    }, {
      "path": "Organization.identifier.type",
      "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
      "min": 0,
      "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
      "short": "Description of identifier",
      "mapping": [ {
        "map": "CX.5",
        "identity": "v2"
      }, {
        "map": "Role.code or implied by context",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "IdentifierType"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/identifier-type"
        }
      },
      "max": "1",
      "id": "Organization.identifier.type",
      "comment": "This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. \n\nWhere the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.type"
      },
      "isSummary": true
    }, {
      "path": "Organization.identifier.system",
      "requirements": "There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
      "min": 1,
      "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
      "short": "The namespace for the identifier value",
      "mapping": [ {
        "map": "CX.4 / EI-2-4",
        "identity": "v2"
      }, {
        "map": "II.root or Role.id.root",
        "identity": "rim"
      }, {
        "map": "./IdentifierType",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Organization.identifier.system",
      "comment": "NPI preferred (http://hl7.org/fhir/sid/us-npi), Tax id is allowed (http://hl7.org/fhir/sid/us-tin), Local id is allowed in addition to 'authoritative' identifier.",
      "example": [ {
        "label": "General",
        "valueUri": "http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.system"
      },
      "isSummary": true
    }, {
      "path": "Organization.identifier.value",
      "min": 0,
      "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
      "short": "The value that is unique",
      "mapping": [ {
        "map": "CX.1 / EI.1",
        "identity": "v2"
      }, {
        "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)",
        "identity": "rim"
      }, {
        "map": "./Value",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Organization.identifier.value",
      "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
      "example": [ {
        "label": "General",
        "valueString": "123456"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.value"
      },
      "isSummary": true
    }, {
      "path": "Organization.identifier.period",
      "min": 0,
      "definition": "Time period during which identifier is/was valid for use.",
      "short": "Time period when id is/was valid for use",
      "mapping": [ {
        "map": "CX.7 + CX.8",
        "identity": "v2"
      }, {
        "map": "Role.effectiveTime or implied by context",
        "identity": "rim"
      }, {
        "map": "./StartDate and ./EndDate",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Organization.identifier.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.period"
      },
      "isSummary": true
    }, {
      "path": "Organization.identifier.assigner",
      "min": 0,
      "definition": "Organization that issued/manages the identifier.",
      "short": "Organization that issued id (may be just text)",
      "mapping": [ {
        "map": "CX.4 / (CX.4,CX.9,CX.10)",
        "identity": "v2"
      }, {
        "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper",
        "identity": "rim"
      }, {
        "map": "./IdentifierIssuingAuthority",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
      } ],
      "max": "1",
      "id": "Organization.identifier.assigner",
      "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.assigner"
      },
      "isSummary": true
    }, {
      "path": "Organization.active",
      "requirements": "Need a flag to indicate a record is no longer to be used and should generally be hidden for the user in the UI.",
      "min": 1,
      "definition": "Whether the organization's record is still in active use.",
      "isModifier": true,
      "short": "Whether the organization's record is still in active use",
      "mapping": [ {
        "map": "No equivalent in HL7 v2",
        "identity": "v2"
      }, {
        "map": ".status",
        "identity": "rim"
      }, {
        "map": "./Status (however this concept in ServD more covers why the organization is active or not, could be delisted, deregistered, not operational yet) this could alternatively be derived from ./StartDate and ./EndDate and given a context date.",
        "identity": "servd"
      }, {
        "map": "status",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "defaultValueBoolean": true,
      "mustSupport": true,
      "max": "1",
      "id": "Organization.active",
      "comment": "Default is true.\n\nThis active flag is not intended to be used to mark an organizations as temporarily closed or under construction. Instead the Location(s) within the Organization should have the suspended status. If further details of the reason for the suspension are required, then an extension on this element should be used.\n\nThis element is labeled as a modifier because it may be used to mark that the resource was created in error.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Organization.active"
      },
      "isSummary": true
    }, {
      "path": "Organization.type",
      "requirements": "Need to be able to track the kind of organization that this is - different organization types have different uses.",
      "min": 1,
      "definition": "The kind(s) of organization that this is.",
      "short": "Kind of organization",
      "mapping": [ {
        "map": "No equivalent in v2",
        "identity": "v2"
      }, {
        "map": ".code",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "servd"
      }, {
        "map": "class",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "description": "The type of Organization",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v3-ServiceDeliveryLocationRoleType"
        }
      },
      "max": "1",
      "id": "Organization.type",
      "comment": "Organizations can be corporations, wards, sections, clinical teams, government departments, etc. Note that code is generally a classifier of the type of organization; in many applications, codes are used to identity a particular organization (say, ward) as opposed to another of the same type - these are identifiers, not codes\n\nWhen considering if multiple types are appropriate, you should evaluate if child organizations would be a more appropriate use of the concept, as different types likely are in different sub-areas of the organization. This is most likely to be used where type values have orthogonal values, such as a religious, academic and medical center.\n\nWe expect that some jurisdictions will profile this optionality to be a single cardinality.",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "RR8",
          "system": "urn:oid:2.16.840.1.114222.4.5.232",
          "display": "Responsible Agency"
        } ]
      },
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization.type"
      },
      "isSummary": true
    }, {
      "path": "Organization.name",
      "requirements": "Need to use the name as the label of the organization.",
      "min": 1,
      "definition": "A name associated with the organization.",
      "short": "Responsible Agency Name",
      "mapping": [ {
        "map": "XON.1",
        "identity": "v2"
      }, {
        "map": ".name",
        "identity": "rim"
      }, {
        "map": ".PreferredName/Name",
        "identity": "servd"
      }, {
        "map": "./PrimaryAddress and ./OtherAddresses",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Organization.name",
      "condition": [ "org-1" ],
      "comment": "If the name of an organization changes, consider putting the old name in the alias column so that it can still be located through searches.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Organization.name"
      },
      "isSummary": true
    }, {
      "path": "Organization.alias",
      "requirements": "Over time locations and organizations go through many changes and can be known by different names.\n\nFor searching knowing previous names that the organization was known by can be very useful.",
      "min": 0,
      "definition": "A list of alternate names that the organization is known as, or was known as in the past.",
      "short": "A list of alternate names that the organization is known as, or was known as in the past",
      "mapping": [ {
        "map": ".name",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "*",
      "id": "Organization.alias",
      "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the organization.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization.alias"
      }
    }, {
      "constraint": [ {
        "key": "org-3",
        "human": "The telecom of an organization can never be of use 'home'",
        "xpath": "count(f:use[@value='home']) = 0",
        "source": "Organization.telecom",
        "severity": "error",
        "expression": "where(use = 'home').empty()"
      } ],
      "path": "Organization.telecom",
      "requirements": "Human contact for the organization.",
      "min": 1,
      "definition": "A contact detail for the organization.",
      "short": "Responsible Agency Contact Information",
      "mapping": [ {
        "map": "ORC-22?",
        "identity": "v2"
      }, {
        "map": ".telecom",
        "identity": "rim"
      }, {
        "map": "./ContactPoints",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "ContactPoint"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Organization.telecom",
      "condition": [ "org-3" ],
      "comment": "The use code home is not to be used. Note that these contacts are not the contact details of people who are employed by or represent the organization, but official contacts for the organization itself.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization.telecom"
      }
    }, {
      "constraint": [ {
        "key": "org-2",
        "human": "An address of an organization can never be of use 'home'",
        "xpath": "count(f:use[@value='home']) = 0",
        "source": "Organization.address",
        "severity": "error",
        "expression": "where(use = 'home').empty()"
      } ],
      "path": "Organization.address",
      "requirements": "May need to keep track of the organization's addresses for contacting, billing or reporting requirements.",
      "min": 1,
      "definition": "An address for the organization.",
      "short": "Responsible Agency Address",
      "mapping": [ {
        "map": "ORC-23?",
        "identity": "v2"
      }, {
        "map": ".address",
        "identity": "rim"
      }, {
        "map": "./PrimaryAddress and ./OtherAddresses",
        "identity": "servd"
      }, {
        "map": "n/a",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Address"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Organization.address",
      "condition": [ "org-2" ],
      "comment": "Organization may have multiple addresses with different uses or applicable periods. The use code home is not to be used.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization.address"
      }
    }, {
      "path": "Organization.address.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Organization.address.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Organization.address.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Organization.address.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Organization.address.use",
      "requirements": "Allows an appropriate address to be chosen from a list of many.",
      "min": 0,
      "definition": "The purpose of this address.",
      "isModifier": true,
      "short": "home | work | temp | old - purpose of this address",
      "mapping": [ {
        "map": "XAD.7",
        "identity": "v2"
      }, {
        "map": "unique(./use)",
        "identity": "rim"
      }, {
        "map": "./AddressPurpose",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AddressUse"
        } ],
        "description": "The use of an address",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/address-use"
        }
      },
      "max": "1",
      "id": "Organization.address.use",
      "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old.",
      "example": [ {
        "label": "General",
        "valueCode": "home"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.use"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.type",
      "min": 0,
      "definition": "Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.",
      "short": "postal | physical | both",
      "mapping": [ {
        "map": "XAD.18",
        "identity": "v2"
      }, {
        "map": "unique(./use)",
        "identity": "rim"
      }, {
        "map": "address type parameter",
        "identity": "vcard"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AddressType"
        } ],
        "description": "The type of an address (physical / postal)",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/address-type"
        }
      },
      "max": "1",
      "id": "Organization.address.type",
      "example": [ {
        "label": "General",
        "valueCode": "both"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.type"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.text",
      "requirements": "A renderable, unencoded form.",
      "min": 0,
      "definition": "A full text representation of the address.",
      "short": "Text representation of the address",
      "mapping": [ {
        "map": "XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6",
        "identity": "v2"
      }, {
        "map": "./formatted",
        "identity": "rim"
      }, {
        "map": "address label parameter",
        "identity": "vcard"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Organization.address.text",
      "comment": "Can provide both a text representation and parts.",
      "example": [ {
        "label": "General",
        "valueString": "137 Nowhere Street, Erewhon 9132"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.text"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.line",
      "requirements": "home | work | temp | old - purpose of this address.",
      "min": 0,
      "definition": "This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information.",
      "short": "Street name, number, direction & P.O. Box etc.",
      "mapping": [ {
        "map": "XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = AL]",
        "identity": "rim"
      }, {
        "map": "street",
        "identity": "vcard"
      }, {
        "map": "./StreetAddress (newline delimitted)",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Organization.address.line",
      "example": [ {
        "label": "General",
        "valueString": "137 Nowhere Street"
      } ],
      "orderMeaning": "The order in which lines should appear in an address label",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Address.line"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.city",
      "min": 0,
      "definition": "The name of the city, town, village or other community or delivery center.",
      "short": "Name of city, town etc.",
      "mapping": [ {
        "map": "XAD.3",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = CTY]",
        "identity": "rim"
      }, {
        "map": "locality",
        "identity": "vcard"
      }, {
        "map": "./Jurisdiction",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "alias": [ "Municpality" ],
      "max": "1",
      "id": "Organization.address.city",
      "example": [ {
        "label": "General",
        "valueString": "Erewhon"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.city"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.district",
      "min": 0,
      "definition": "The name of the administrative area (county).",
      "short": "District name (aka county)",
      "mapping": [ {
        "map": "XAD.9",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = CNT | CPA]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "County" ],
      "max": "1",
      "id": "Organization.address.district",
      "comment": "District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead.",
      "example": [ {
        "label": "General",
        "valueString": "Madison"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.district"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.state",
      "min": 0,
      "definition": "Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).",
      "short": "Sub-unit of country (abbreviations ok)",
      "mapping": [ {
        "map": "XAD.4",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = STA]",
        "identity": "rim"
      }, {
        "map": "region",
        "identity": "vcard"
      }, {
        "map": "./Region",
        "identity": "servd"
      }, {
        "map": "./Sites",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "description": "Two letter USPS alphabetic codes.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/usps-state"
        }
      },
      "alias": [ "Province", "Territory" ],
      "max": "1",
      "id": "Organization.address.state",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.state"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.postalCode",
      "min": 0,
      "definition": "A postal code designating a region defined by the postal service.",
      "short": "US Zip Codes",
      "mapping": [ {
        "map": "XAD.5",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = ZIP]",
        "identity": "rim"
      }, {
        "map": "code",
        "identity": "vcard"
      }, {
        "map": "./PostalIdentificationCode",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "alias": [ "Zip" ],
      "max": "1",
      "id": "Organization.address.postalCode",
      "example": [ {
        "label": "General",
        "valueString": "9132"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.postalCode"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.country",
      "min": 0,
      "definition": "Country - a nation as commonly understood or generally accepted.",
      "short": "Country (e.g. can be ISO 3166 2 or 3 letter code)",
      "mapping": [ {
        "map": "XAD.6",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = CNT]",
        "identity": "rim"
      }, {
        "map": "country",
        "identity": "vcard"
      }, {
        "map": "./Country",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Organization.address.country",
      "comment": "ISO 3166 3 letter codes can be used in place of a full country name.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.country"
      },
      "isSummary": true
    }, {
      "path": "Organization.address.period",
      "requirements": "Allows addresses to be placed in historical context.",
      "min": 0,
      "definition": "Time period when address was/is in use.",
      "short": "Time period when address was/is in use",
      "mapping": [ {
        "map": "XAD.12 / XAD.13 + XAD.14",
        "identity": "v2"
      }, {
        "map": "./usablePeriod[type=\"IVL\"]",
        "identity": "rim"
      }, {
        "map": "./StartDate and ./EndDate",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Organization.address.period",
      "example": [ {
        "label": "General",
        "valuePeriod": {
          "end": "2010-07-01T00:00:00+10:00",
          "start": "2010-03-22T23:00:00+10:00"
        }
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.period"
      },
      "isSummary": true
    }, {
      "path": "Organization.partOf",
      "requirements": "Need to be able to track the hierarchy of organizations within an organization.",
      "min": 0,
      "definition": "The organization of which this organization forms a part.",
      "short": "The organization of which this organization forms a part",
      "mapping": [ {
        "map": "No equivalent in HL7 v2",
        "identity": "v2"
      }, {
        "map": ".playedBy[classCode=Part].scoper",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
      } ],
      "max": "1",
      "id": "Organization.partOf",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Organization.partOf"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Organization.contact",
      "requirements": "Need to keep track of assigned contact points within bigger organization.",
      "min": 0,
      "definition": "Contact for the organization for a certain purpose.",
      "short": "Contact for the organization for a certain purpose",
      "mapping": [ {
        "map": ".contactParty",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Organization.contact",
      "comment": "Where multiple contacts for the same purpose are provided there is a standard extension that can be used to determine which one is the preferred contact to use.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization.contact"
      }
    }, {
      "path": "Organization.contact.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Organization.contact.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Organization.contact.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Organization.contact.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Organization.contact.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Organization.contact.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Organization.contact.purpose",
      "requirements": "Need to distinguish between multiple contact persons.",
      "min": 0,
      "definition": "Indicates a purpose for which the contact can be reached.",
      "short": "The type of contact",
      "mapping": [ {
        "map": "./type",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ContactPartyType"
        } ],
        "description": "The purpose for which you would contact a contact party",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/contactentity-type"
        }
      },
      "max": "1",
      "id": "Organization.contact.purpose",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Organization.contact.purpose"
      }
    }, {
      "path": "Organization.contact.name",
      "requirements": "Need to be able to track the person by name.",
      "min": 0,
      "definition": "A name associated with the contact.",
      "short": "A name associated with the contact",
      "mapping": [ {
        "map": "PID-5, PID-9",
        "identity": "v2"
      }, {
        "map": "./name",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "HumanName"
      } ],
      "max": "1",
      "id": "Organization.contact.name",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Organization.contact.name"
      }
    }, {
      "path": "Organization.contact.telecom",
      "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
      "min": 0,
      "definition": "A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.",
      "short": "Contact details (telephone, email, etc.)  for a contact",
      "mapping": [ {
        "map": "PID-13, PID-14",
        "identity": "v2"
      }, {
        "map": "./telecom",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactPoint"
      } ],
      "max": "*",
      "id": "Organization.contact.telecom",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization.contact.telecom"
      }
    }, {
      "path": "Organization.contact.address",
      "requirements": "May need to keep track of a contact party's address for contacting, billing or reporting requirements.",
      "min": 0,
      "definition": "Visiting or postal addresses for the contact.",
      "short": "Visiting or postal addresses for the contact",
      "mapping": [ {
        "map": "PID-11",
        "identity": "v2"
      }, {
        "map": "./addr",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Address"
      } ],
      "max": "1",
      "id": "Organization.contact.address",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Organization.contact.address"
      }
    }, {
      "path": "Organization.endpoint",
      "requirements": "Organizations have multiple systems that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose.",
      "min": 0,
      "definition": "Technical endpoints providing access to services operated for the organization.",
      "short": "Technical endpoints providing access to services operated for the organization",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Endpoint"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Organization.endpoint",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Organization.endpoint"
      }
    } ]
  },
  "status": "draft",
  "id": "d83e3997-9483-4c2f-92f1-22fe784c20c8",
  "kind": "resource",
  "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-responsible-agency",
  "version": "0.2.0",
  "differential": {
    "element": [ {
      "id": "Organization",
      "min": 1,
      "path": "Organization",
      "short": "Responsible Agency",
      "definition": "The Responsible Agency profile is based on the US Core Organization and sets the type to 'Responsible Agency'. A Responsible Agency is a PHA to which reporting is legally required. This represents the PHA for the location in which care was provided and/or where the patient lives.",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "Organization.text",
      "path": "Organization.text",
      "short": "Repsponsible Agency Description",
      "definition": "Description of the Responsible Agency",
      "mustSupport": true
    }, {
      "id": "Organization.identifier",
      "path": "Organization.identifier",
      "short": "Responsible Agency Id",
      "mustSupport": true
    }, {
      "id": "Organization.type",
      "max": "1",
      "min": 1,
      "path": "Organization.type",
      "isModifier": false,
      "mustSupport": true,
      "patternCodeableConcept": {
        "coding": [ {
          "code": "RR8",
          "system": "urn:oid:2.16.840.1.114222.4.5.232",
          "display": "Responsible Agency"
        } ]
      }
    }, {
      "id": "Organization.name",
      "min": 1,
      "path": "Organization.name",
      "short": "Responsible Agency Name",
      "mustSupport": true
    }, {
      "id": "Organization.telecom",
      "path": "Organization.telecom",
      "short": "Responsible Agency Contact Information",
      "mustSupport": true
    }, {
      "id": "Organization.address",
      "path": "Organization.address",
      "short": "Responsible Agency Address",
      "mustSupport": true
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/us/ecr/StructureDefinition/ecr-organization"
}