{
  "resourceType": "StructureDefinition",
  "id": "c64fdc1a-fb62-4b97-9e5f-a6ea7050d86d",
  "meta": {
    "lastUpdated": "2020-12-03T01:02:20.885+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/CDS-S-Patient",
  "name": "CdssPatient",
  "status": "draft",
  "date": "2020-12-01T20:12:51.7661798+00:00",
  "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"
    },
    {
      "identity": "cds",
      "uri": "https://www.ontariomd.ca/",
      "name": "OntarioMD - CDS-S"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.016 Patient Status",
            "comment": "Where a patient is 'deceased', Patient.active should be set to 'false' and Patient.deceasedBoolean should be set to 'true'."
          }
        ]
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.002 Last Name"
          }
        ]
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.003 First Name",
            "comment": "Patient.name.given[0] Maps to First Name"
          },
          {
            "identity": "cds",
            "map": "DE01.004 Middle Name",
            "comment": "Patient.name.given[1..*] maps to DE01.004 Middle Name"
          }
        ]
      },
      {
        "id": "Patient.name.prefix",
        "path": "Patient.name.prefix",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.001 Name Prefix"
          }
        ]
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.005 Name Suffix"
          }
        ]
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.006 Gender"
          }
        ]
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.007 Date of Birth"
          }
        ]
      },
      {
        "id": "Patient.communication.language",
        "path": "Patient.communication.language",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.013 Preferred Official Language",
            "comment": "Maps to Patient.communication[0].language.coding.code"
          }
        ]
      },
      {
        "id": "Patient.communication.preferred",
        "path": "Patient.communication.preferred",
        "mapping": [
          {
            "identity": "cds",
            "map": "DE01.014 Preferred Spoken Language",
            "comment": "Maps to Patient.communication[1].language.coding.code"
          }
        ]
      }
    ]
  }
}