Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Merge pull request #510 from CDCgov/story-490-pid-ig
Browse files Browse the repository at this point in the history
490: `PID` Documentation in IG
  • Loading branch information
halprin authored Sep 5, 2023
2 parents dae42fd + 9fb579d commit c5a4686
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 22 deletions.
2 changes: 1 addition & 1 deletion examples/fhir/oml_message.json
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@
],
"city": "DEER CREEK",
"district": "OTTER TAIL",
"state": "IG",
"state": "MN",
"postalCode": "56527-9657",
"country": "USA"
}
Expand Down
63 changes: 42 additions & 21 deletions ig/input/fsh/nbs-pid-segment.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,34 @@ Id: segment-pid-logical-model
Title: "PID Segment"
Description: "The PID Segment"
* segmentType 1..1 SU string "PID"
* setId 1..1 SU string "PID-1 a sequence number"
* patientId 0..1 SU string "a patient id (retained for backward compatibility, but should be blank"
* patientIdList 1..1 SU string "PID-3 a list of patient identifiers"
* alternatePatientId 0..1 SU string "alternate patient id, should be blank"
* patientName 1..1 SU string "PID-5 patient name"
* mothersMaidenName 0..1 SU string "PID-6 mothers maiden name"
* birthDateTime 1..1 SU string "PID-7 birth date and time"
* administrativeSex 1..1 SU string "PID-8 administrative sex"
* patientAlias 0..1 SU string "should be blank"
* race 1..1 SU string "race/ethnicity"
* patientAddress 0..1 SU string "PID-11 patient address"
* countyCode 0..1 SU string "retained for backward compatibility"
* homePhone 1..1 SU string "home phone number"
* businessPhone 0..1 SU string "business phone number"
* primaryLanguage 0..1 SU string "language"
* maritalStatus 1..1 SU string "marital status"
* religion 0..1 SU string "religion"
* patientAccountNumber 1..1 SU string "patient account number"
* ssn 0..1 SU string "retained for backward compatibility"
// other optional fields

* setId 1..1 SU positiveInt "PID-1 A Sequence Number"
* patientIdentifierList 1..1 SU string "PID-3 A List Of Patient Identifiers"
* patientIdentifierListIdNumber 1..1 SU string "PID-3.1 Patient Identifier Id Number"
* patientIdentifierListTypeCode 1..1 SU code "PID-3.5 Patient identifier Type Code"
* patientName 1..1 SU string "PID-5 Patient Name"
* patientNameFamilyName 1..1 SU string "PID-5.1 Patient Family Name"
* patientNameGivenName 1..1 SU string "PID-5.2 Patient Given Name"
* mothersMaidenName 0..1 SU string "PID-6 Mother's Maiden Name"
* mothersMaidenNameFamilyName 0..1 SU string "PID-6.1 Mother's Maiden Family Name"
* mothersMaidenNameGivenName 0..1 SU string "PID-6.2 Mother's Maiden Given Name"
* mothersMaidenNameSecondName 0..1 SU string "PID-6.3 Mother's Maiden Second and Further Given Name"
* birthDateTime 1..1 SU dateTime "PID-7 Birth Date And Time"
* administrativeSex 1..1 SU string "PID-8 Administrative sex"
* patientAddress 0..1 SU string "PID-11 Patient Address"
* patientAddressStreet 1..1 SU string "PID-11.1 Patient Street Address"
* patientAddressStreetMailing 1..1 SU string "PID-11.1.1 Patient Street or Mailing Address"
* patientAddressCity 1..1 SU string "PID-11.3 Patient Address City"
* patientAddressStateOrProvince 1..1 SU string "PID-11.4 State or Province"
* patientAddressPostalCode 1..1 SU string "PID-11.5 Patient Address ZIP or Postal Code"
* patientAddressCountry 0..1 SU code "PID-11.6 Patient Address Country"
* patientAddressType 0..1 SU code "PID-11.7 Patient Address Type"
* patientAddressCounty 0..1 SU string "PID-11.9 Patient Address County or Parish Code"
* phoneNumberHome 0..1 SU string "PID-13 Phone Number - Home"
* phoneNumberHomeType 0..1 SU code "PID-13.3 Phone Number Telecommunication Equipment Type"
* phoneNumberHomeAnyText 0..1 SU string "PID-13.9 Phone Number Any Text"
* multipleBirthIndicator 0..1 SU code "PID-24 Multple Birth Indicator"
* birthOrder 0..1 SU positiveInt "PID-25 Birth Order"
* patientDeathIndicator 0..1 SU code "PID-30 Patient Death Indicator"

// Provenance Section begins
Instance: segment-pid-logical-model-history-create
Expand All @@ -38,3 +45,17 @@ Usage: #definition
* activity = http://terminology.hl7.org/CodeSystem/v3-DataOperation#CREATE
* agent[+].type = http://terminology.hl7.org/CodeSystem/provenance-participant-type#author
* agent[=].who.display = "T. R. Johnson"


Instance: segment-pid-logical-model-history-update
InstanceOf: Provenance
Title: "addition of PID segment fields and cardinality correction"
Usage: #definition
* target[+] = Reference(StructureDefinition/segment-pid-logical-model)
* recorded = "2023-09-04T18:17:36.0000Z"
* occurredDateTime = "2023-09-04"
* reason = http://terminology.hl7.org/CodeSystem/v3-ActReason#METAMGT
* reason.text = "changed the sub-segments to the ones we initially support."
* activity = http://terminology.hl7.org/CodeSystem/v3-DataOperation#UPDATE
* agent[+].type = http://terminology.hl7.org/CodeSystem/provenance-participant-type#author
* agent[=].who.display = "T. R. Johnson"

0 comments on commit c5a4686

Please sign in to comment.