|A depiction of the main double elective affinity reaction Goethe employed in the telling of his 1809 physical chemistry based novella Elective Affinities, each chapter describing a different type human elective affinity reaction.|
This view was conceived in 1809 by German polymath Johann von Goethe and outlined in "chapter four" (book one) of what he considered his greatest work: Elective Affinities. 
Lecture on anatomy
Goethe’s first detailed presentation of affinity occurs in his third Lecture on Anatomy of 1796.  Specifically, in his lectures on comparative anatomy and zoology, under the heading ‘On the Laws of Organization as Such, to the Extent That We Can Observe Them in the Structure of Types’, Goethe stated the following view: 
“To facilitate our comprehension of the concept of organic existence, let us first take a look at mineral structures. Minerals, whose varied components are so solid and unchanging, do not seem to hold to any limits or order when then combine, although laws do determine these conditions. Different components can be easily separated and recombined into new combinations. These combinations can again be taken apart, and the mineral we thought destroyed can soon be restored to its original perfection.
The main characteristic of minerals that concerns us here is the indifference their components show toward the form of their combination, that is, their coordination or subordination. There are, by nature, stronger or weaker bonds between these components, and when they evidence themselves, they resemble attractions between human beings. This is why chemists speak of elective affinities, even though the forces that move mineral components [or humans] one way or another and create mineral structures are often purely external in origin, which by no means implies that we deny them the delicate portion of nature’s vital inspiration that is their due.”
Here we see, in excellent form, in 1796, Goethe discussing "human chemical bonding" in the context of the affinity forces, which he correctly says are "external in origin", that create or dissolve such combinations. He continues:
“How different even imperfect organic beings are! They convert part of the nourishment they absorb—eliminating what they do not need—into distinct organs. What they do absorb they turn into something unique and exquisite by joining most intimately one element with another and so forming differentiated parts in whose forms multifarious life is manifested. And if these forms are destroyed, they cannot be reconstructed from what remains.
If we compare these imperfect organic beings with higher ones, we find that the former, even though they make use of elemental influences with a certain degree of force and individuality, cannot bring the resulting organic parts to the same level of specialization and permanence as the higher animal forms can. We know, for example, that plans—and we will not descend any lower on the scale of organic life—developing as they do in a certain sequence, represent one and the same basic organ in highly different shapes.
Detailed insight into the law governing this metamorphosis will surely advance the science of botany, not only in its descriptive tasks but also in its efforts to understand the inner nature of plants.”
In this last section, Goethe indicates the life from non-life issue, where he says "we will not descend any lower on the scale of organic life", and foreshadows the laws of evolution (or "law governing this metamorphosis"), as introduced by Charles Darwin in 1859.
1. Goethe, Johann von. (1809). Elective Affinities. New York: Penguin Classics.
2. (a) Thims, Libb. (2007). Human Chemistry (Volume One), (preview). Morrisville, NC: LuLu.
(b) Thims, Libb. (2007). Human Chemistry (Volume Two), (preview), (ch. 10: "Goethe's Affinities", pgs. 371-422). Morrisville, NC: LuLu.
3. Goethe, Johann. (1796). Lectures on Anatomy, I, 9, pg. 202f.
4. Eigen, Manfred, and Winkler, Ruthild. (1993). Laws of the Game: How the Principles of Nature Govern Chance (pg. 74-77). Princeton University Press.