{
  "resourceType": "StructureDefinition",
  "url": "http://example.org/fhir/StructureDefinition/RWEPatient",
  "name": "RWEPatient",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier.assigner",
        "path": "Patient.identifier.assigner",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:USUBJID",
        "path": "Patient.identifier",
        "sliceName": "USUBJID",
        "min": 1,
        "max": "1",
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "system": "http://example.org/fhir/ValueSet/identifier-type-FDA",
                "code": "USUBJID",
                "display": "USUBJID"
              }
            ]
          }
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:USUBJID.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:USUBJID.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:SUBJID",
        "path": "Patient.identifier",
        "sliceName": "SUBJID",
        "comment": "The cardinality of this identifier slice may be increased to 1..1 if the FDA determines that SUBJID should be present for all patients in trials that are completed on RWE",
        "max": "1",
        "patternIdentifier": {
          "system": "http://example.org/fhir/ValueSet/identifier-type-FDA",
          "value": "SUBJID"
        }
      },
      {
        "id": "Patient.identifier:SUBJID.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:SUBJID.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}