{
  "resourceType": "StructureDefinition",
  "id": "spark1699",
  "meta": {
    "versionId": "spark2136",
    "lastUpdated": "2015-12-22T18:27:48.214+00:00"
  },
  "url": "http://premierinc.com/fhir/StructureDefinition/tdaf-organization",
  "name": "TheraDoc Data Access Framework (TDAF) Organization Profile",
  "display": "DAF-Organization",
  "status": "draft",
  "publisher": "Health Level Seven International (Infrastructure and Messaging - Data Access Framework)",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://www.healthit.gov"
        }
      ]
    }
  ],
  "date": "2015-03-03",
  "description": "Defines basic constraints and extensions on the Organization resource for use with other DAF resources",
  "fhirVersion": "1.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    },
    {
      "identity": "servd",
      "uri": "http://www.omg.org/spec/ServD/1.0/",
      "name": "ServD"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    }
  ],
  "kind": "resource",
  "constrainedType": "Organization",
  "abstract": false,
  "base": "http://hl7.org/fhir/StructureDefinition/Organization",
  "differential": {
    "element": [
      {
        "path": "Organization",
        "name": "DAF-Organization",
        "short": "A grouping of people or organizations with a common purpose",
        "definition": "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action.  Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Organization"
          }
        ],
        "mapping": [
          {
            "identity": "servd",
            "map": "Organization"
          }
        ]
      },
      {
        "path": "Organization.identifier",
        "short": "Identifies this organization  across multiple systems",
        "definition": "Identifier for the organization that is used to identify the organization across multiple disparate systems.",
        "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": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "condition": [
          "org-1"
        ],
        "mustSupport": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "servd",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Organization.active",
        "short": "Whether the organization's record is still in active use",
        "definition": "Whether the organization's record is still in active use.",
        "comments": "Default is true.",
        "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": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": true,
        "mustSupport": true,
        "isModifier": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "No equivalent in HL7 v2"
          },
          {
            "identity": "rim",
            "map": ".status"
          },
          {
            "identity": "servd",
            "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": "w5",
            "map": "status"
          }
        ]
      },
      {
        "path": "Organization.name",
        "short": "Name used for the organization",
        "definition": "A name associated with the organization.",
        "requirements": "Need to use the name as the label of the organization.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "org-1"
        ],
        "mustSupport": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "servd",
            "map": "./PrimaryAddress and ./OtherAddresses"
          }
        ]
      },
      {
        "path": "Organization.address",
        "short": "An address for the organization",
        "definition": "An address for the organization.",
        "comments": "Organization may have multiple addresses with different uses or applicable periods. The use code home is not to be used.",
        "requirements": "May need to keep track of the organization's addresses for contacting, billing or reporting requirements.",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Address"
          }
        ],
        "condition": [
          "org-2"
        ],
        "mapping": [
          {
            "identity": "servd",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Organization.address.line",
        "short": "Street name, number, direction & P.O. Box etc.",
        "definition": "This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information.",
        "requirements": "home | work | temp | old - purpose of this address.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = AL]"
          },
          {
            "identity": "vcard",
            "map": "street"
          },
          {
            "identity": "servd",
            "map": "./StreetAddress (newline delimitted)"
          }
        ]
      },
      {
        "path": "Organization.address.city",
        "short": "Name of city, town etc.",
        "definition": "The name of the city, town, village or other community or delivery center.",
        "alias": [
          "Municpality"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "Erewhon",
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.3"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = CTY]"
          },
          {
            "identity": "vcard",
            "map": "locality"
          },
          {
            "identity": "servd",
            "map": "./Jurisdiction"
          }
        ]
      },
      {
        "path": "Organization.address.state",
        "short": "Sub-unit of country (abbreviations ok)",
        "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).",
        "alias": [
          "Province",
          "Territory"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Two letter USPS alphabetic codes.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/usps-state"
          }
        },
        "mapping": [
          {
            "identity": "servd",
            "map": "./Sites"
          }
        ]
      },
      {
        "path": "Organization.address.postalCode",
        "short": "US Zip Codes",
        "definition": "US Zip Codes.",
        "alias": [
          "Zip"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "9132",
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.5"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = ZIP]"
          },
          {
            "identity": "vcard",
            "map": "code"
          },
          {
            "identity": "servd",
            "map": "./PostalIdentificationCode"
          }
        ]
      }
    ]
  }
}