<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://tigahealth.com/fhir/StructureDefinition/SocialHistory" />
  <name value="SocialHistory" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.identifier.type">
      <path value="Observation.identifier.type" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.identifier.type:PRN">
      <path value="Observation.identifier.type" />
      <sliceName value="PRN" />
      <min value="1" />
    </element>
    <element id="Observation.identifier.type:PRN.coding.system">
      <path value="Observation.identifier.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://moph.qa/codesystem/PatientIdentifier" />
    </element>
    <element id="Observation.identifier.type:PRN.coding.code">
      <path value="Observation.identifier.type.coding.code" />
      <min value="1" />
      <fixedCode value="PRN" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.category.coding">
      <path value="Observation.category.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.category.coding.system">
      <path value="Observation.category.coding.system" />
      <min value="1" />
      <fixedUri value="http://hl7.org/fhir/ValueSet/observation-category" />
    </element>
    <element id="Observation.category.coding.code">
      <path value="Observation.category.coding.code" />
      <min value="1" />
      <fixedCode value="social-history" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <min value="1" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>