Keep the "PatientRecordType" template but:
Change the Name of the template to: SourceRecordFieldType. This means the reference to this template in the RSG template must also be changed.
Change template description to: Type of recorded sex or gender. The name of the field within the source document where this sex or gender property is initially recorded.
Change conformance #3 (observation.code for the template) from:
SHALL contain exactly one [1..1] code="184216000" Patient record type (CodeSystem: SNOMED CT urn:oid:2.16.840.1.113883.6.96) (CONF:4536-177).
to:
SHALL contain exactly one [1..1] code="48766-0" Information Source (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1) (CONF:4536-177).
Change last conformance (#6) from:
SHALL contain exactly one [1..1] value with @xsi:type="CD", where the code SHALL be
selected from ValueSet Recorded Sex Or Gender Type urn:oid:2.16.840.1.113883.11.19757 (CONF:4536-179).
a. This value SHALL contain exactly one [1..1] @code (CONF:4536-183).
TO:
SHALL contain exactly one [1..1] value with @xsi:type="CD", where the code MAY be
selected from ValueSet Recorded Sex Or Gender Type urn:oid:2.16.840.1.113883.11.19757 (CONF:4536-179).
a. May contain ORGINALTEXT (To include the original text string name of the field.)
In addition, these changes mean that the following change must occur in the main RSG template:
Original:
8. SHALL contain exactly one [1..1] value with @xsi:type="CD", where the code SHOULD be selected from ValueSet Recorded Sex Or Gender Type urn:oid:2.16.840.1.113883.11.19757 (CONF:4536-93).
originalText is the value of the field from the source document.
a. This value MAY contain zero or one [0..1] originalText (CONF:4536-185).
New:
8. SHALL contain exactly one [1..1] value with @xsi:type="CD", where the code MAY be selected from ValueSet administrative-gender urn:oid:2.16.840.1.113883.4.642.3.1 (CONF:4536-93).
(this is the FHIR valueset http://hl7.org/fhir/ValueSet/administrative-gender)