{
  "resourceType": "StructureDefinition",
  "id": "fparPregnancyStatusEval",
  "url": "http://fhir.org/guides/hspc/StructureDefinition/fparPregnancyStatusEval",
  "version": "1.0.0",
  "name": "FPAR Pregnancy Status Eval Profile",
  "status": "draft",
  "date": "2017-05-09",
  "publisher": "HSPC on behalf of FPAR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://healthcaresoa.org"
        }
      ]
    }
  ],
  "fhirVersion": "3.0.0",
  "mapping": [
    {
      "identity": "argonaut-dq-dstu2",
      "uri": "http://unknown.org/Argonaut DQ DSTU2",
      "name": "Argonaut DQ DSTU2"
    },
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Mapping"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.info/sct",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation:fparPregnancyStatusEval",
        "path": "Observation",
        "sliceName": "fparPregnancyStatusEval",
        "short": "HSPC Annual Household Income.",
        "definition": "The FPAR Pregnancy Status Eval Profile is based on the US Core Results Profile.",
        "comment": "Pregnancy status at time of encounter",
        "alias": [
          "Obs"
        ],
        "constraint": [
          {
            "key": "us-core-2",
            "severity": "error",
            "human": "If there is no component or related element then either a value[x] or a data absent reason must be present",
            "expression": "(component.empty() and related.empty()) implies (dataAbsentReason or value)",
            "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "mapping": [
          {
            "identity": "argonaut-dq-dstu2",
            "map": "Observation"
          }
        ]
      },
      {
        "id": "Observation:fparPregnancyStatusEval.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional Content defined by implementations",
        "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.",
        "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Observation:fparPregnancyStatusEval.extension:reportingMethod",
        "path": "Observation.extension",
        "sliceName": "reportingMethod",
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": "http://fhir.org/guides/hspc/StructureDefinition/reportingMethod"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ObservationCategory"
            }
          ],
          "strength": "preferred",
          "description": "Pregnancy statuses.",
          "valueSetReference": {
            "reference": "https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.23"
          }
        }
      },
      {
        "id": "Observation:fparPregnancyStatusEval.code",
        "path": "Observation.code",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "82810-3",
              "display": "Pregnancy Status"
            }
          ]
        },
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "argonaut-dq-dstu2",
            "map": "Observation.code"
          }
        ]
      },
      {
        "id": "Observation:fparPregnancyStatusEval.valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.1"
          }
        }
      },
      {
        "id": "Observation:fparPregnancyStatusEval.bodySite",
        "path": "Observation.bodySite",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Observation:fparPregnancyStatusEval.method",
        "path": "Observation.method",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Observation:fparPregnancyStatusEval.specimen",
        "path": "Observation.specimen",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Reference"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Observation:fparPregnancyStatusEval.device",
        "path": "Observation.device",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Reference"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Observation:fparPregnancyStatusEval.referenceRange",
        "path": "Observation.referenceRange",
        "min": 0,
        "max": "0",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Observation:fparPregnancyStatusEval.related",
        "path": "Observation.related",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Reference"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Observation:fparPregnancyStatusEval.component",
        "path": "Observation.component",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Reference"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      }
    ]
  }
}